]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
14 years agoImprove comments and defensive programming for 3045
Nick Mathewson [Mon, 30 May 2011 19:15:10 +0000 (15:15 -0400)] 
Improve comments and defensive programming for 3045

The comment fixes are trivial.  The defensive programming trick is to
tolerate receiving NULL inputs on the describe functions. That should
never actually happen, but it seems like the likeliest mistake for us
to make in the future.

14 years agochanges file for bug3045
Nick Mathewson [Mon, 16 May 2011 02:02:24 +0000 (22:02 -0400)] 
changes file for bug3045

14 years agoLog descriptions of nodes, not just nicknames.
Nick Mathewson [Mon, 16 May 2011 01:58:46 +0000 (21:58 -0400)] 
Log descriptions of nodes, not just nicknames.

This patch introduces a few new functions in router.c to produce a
more helpful description of a node than its nickame, and then tweaks
nearly all log messages taking a nickname as an argument to call these
functions instead.

There are a few cases where I left the old log messages alone: in
these cases, the nickname was that of an authority (whose nicknames
are useful and unique), or the message already included an identity
and/or an address.  I might have missed a couple more too.

This is a fix for bug 3045.

14 years agoMerge branch 'bug2972' into maint-0.2.2
Nick Mathewson [Mon, 16 May 2011 00:20:36 +0000 (20:20 -0400)] 
Merge branch 'bug2972' into maint-0.2.2

14 years agoMake check_private_dir check for group ownership as appropriate
Nick Mathewson [Sun, 15 May 2011 17:11:48 +0000 (13:11 -0400)] 
Make check_private_dir check for group ownership as appropriate

14 years agoFix up some comment issues spotted by rransom
Nick Mathewson [Sun, 15 May 2011 17:03:15 +0000 (13:03 -0400)] 
Fix up some comment issues spotted by rransom

14 years agoCheck permissions on the directory holding a control socket
Nick Mathewson [Fri, 13 May 2011 19:46:53 +0000 (15:46 -0400)] 
Check permissions on the directory holding a control socket

14 years agoAdd a new flag to check_private_dir to make it _not_ change permissions
Nick Mathewson [Fri, 13 May 2011 19:40:03 +0000 (15:40 -0400)] 
Add a new flag to check_private_dir to make it _not_ change permissions

We'll need this for checking permissions on the directories that hold
control sockets: if somebody says "ControlSocket ~/foo", it would be
pretty rude to do a chmod 700 on their homedir.

14 years agoAdd a function to pull off the final component of a path
Nick Mathewson [Fri, 13 May 2011 19:15:41 +0000 (15:15 -0400)] 
Add a function to pull off the final component of a path

14 years agoMake check_private_dir accept g+rx dirs if told to do so.
Nick Mathewson [Fri, 13 May 2011 18:55:40 +0000 (14:55 -0400)] 
Make check_private_dir accept g+rx dirs if told to do so.

14 years agoClean up the 2972 implementation a little
Sebastian Hahn [Sat, 23 Apr 2011 00:57:53 +0000 (02:57 +0200)] 
Clean up the 2972 implementation a little

14 years agoAdd UnixSocketsGroupWritable config flag
Jérémy Bobbio [Sat, 23 Apr 2011 00:35:02 +0000 (02:35 +0200)] 
Add UnixSocketsGroupWritable config flag

When running a system-wide instance of Tor on Unix-like systems, having
a ControlSocket is a quite handy mechanism to access Tor control
channel.  But it would be easier if access to the Unix domain socket can
be granted by making control users members of the group running the Tor
process.

This change introduces a UnixSocketsGroupWritable option, which will
create Unix domain sockets (and thus ControlSocket) 'g+rw'. This allows
ControlSocket to offer same access control measures than
ControlPort+CookieAuthFileGroupReadable.

See <http://bugs.debian.org/552556> for more details.

14 years agoPreserve bridge download status across SETCONF, HUP
Nick Mathewson [Sun, 15 May 2011 16:46:26 +0000 (12:46 -0400)] 
Preserve bridge download status across SETCONF, HUP

This code changes it so that we don't remove bridges immediately when
we start re-parsing our configuration.  Instead, we mark them all, and
remove all the marked ones after re-parsing our bridge lines.  As we
add a bridge, we see if it's already in the list.  If so, we just
unmark it.

This new behavior will lose the property we used to have that bridges
were in bridge_list in the same order in which they appeared in the
torrc.  I took a quick look through the code, and I'm pretty sure we
didn't actually depend on that anywhere.

This is for bug 3019; it's a fix on 0.2.0.3-alpha.

14 years agoFixup whitespace issues from 3122 commit
Nick Mathewson [Mon, 16 May 2011 00:12:01 +0000 (20:12 -0400)] 
Fixup whitespace issues from 3122 commit

14 years agoMerge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Mon, 16 May 2011 00:09:10 +0000 (20:09 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2

Conflicts:
src/or/networkstatus.c

14 years agoFixup whitespace issues from 3122 commit
Nick Mathewson [Mon, 16 May 2011 00:06:36 +0000 (20:06 -0400)] 
Fixup whitespace issues from 3122 commit

14 years agoMerge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Sun, 15 May 2011 23:56:27 +0000 (19:56 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2

14 years agoAnother doc tweak on tor_memcmp: <b>b</b>, not <b>.
Nick Mathewson [Sun, 15 May 2011 23:56:05 +0000 (19:56 -0400)] 
Another doc tweak on tor_memcmp: <b>b</b>, not <b>.

14 years agominor tweaks to 4b19730c8234d
Roger Dingledine [Sun, 15 May 2011 23:20:42 +0000 (19:20 -0400)] 
minor tweaks to 4b19730c8234d

14 years agoMerge branch 'bug3026' into maint-0.2.2
Nick Mathewson [Sun, 15 May 2011 16:18:23 +0000 (12:18 -0400)] 
Merge branch 'bug3026' into maint-0.2.2

14 years agoReplace a nasty add-malloc-snprintf with a nice clean asprintf
Nick Mathewson [Sun, 15 May 2011 15:41:49 +0000 (11:41 -0400)] 
Replace a nasty add-malloc-snprintf with a nice clean asprintf

14 years agoMerge branch 'bug1345' into maint-0.2.2
Nick Mathewson [Sun, 15 May 2011 15:40:14 +0000 (11:40 -0400)] 
Merge branch 'bug1345' into maint-0.2.2

14 years agoBetter doc for consider_recording_trackexithost
Nick Mathewson [Sun, 15 May 2011 15:37:33 +0000 (11:37 -0400)] 
Better doc for consider_recording_trackexithost

14 years agoMerge branch 'bug2732-simpler' into maint-0.2.2
Nick Mathewson [Sun, 15 May 2011 15:17:54 +0000 (11:17 -0400)] 
Merge branch 'bug2732-simpler' into maint-0.2.2

14 years agoRip out more of hid_serv_acting_as_directory
Nick Mathewson [Sun, 15 May 2011 15:14:28 +0000 (11:14 -0400)] 
Rip out more of hid_serv_acting_as_directory

rransom notes correctly that now that we aren't checking our HSDir
flag, we have no actual reason to check whether we are listed in the
consensus at all when determining if we should act like a hidden
service directory.

14 years agoHandle transitions in Automap*, VirtualAddrNetwork correctly
Nick Mathewson [Fri, 13 May 2011 20:59:31 +0000 (16:59 -0400)] 
Handle transitions in Automap*, VirtualAddrNetwork correctly

Previously, if they changed in torrc during a SIGHUP, all was well,
since we would just clear all transient entries from the addrmap
thanks to bug 1345.  But if you changed them from the controller, Tor
would leave old mappings in place.

The VirtualAddrNetwork bug has been here since 0.1.1.19-rc; the
AutomapHosts* bug has been here since 0.2.0.1-alpha.

14 years agoWhen TrackExitHosts changes, remove all no-longer-valid mappings
Nick Mathewson [Fri, 13 May 2011 20:22:58 +0000 (16:22 -0400)] 
When TrackExitHosts changes, remove all no-longer-valid mappings

This bug couldn't happen when TrackExitHosts changed in torrc, since
the SIGHUP to reload the torrc would clear out all the transient
addressmap entries before.  But if you used SETCONF to change
TrackExitHosts, old entries would be left alone: that's a bug, and so
this is a bugfix on Tor 0.1.0.1-rc.

14 years agoRaise the TrackHostExits membership code into its own function
Nick Mathewson [Fri, 13 May 2011 20:22:10 +0000 (16:22 -0400)] 
Raise the TrackHostExits membership code into its own function

14 years agoDon't clear out transient addressmap entries on HUP
Nick Mathewson [Fri, 13 May 2011 20:20:01 +0000 (16:20 -0400)] 
Don't clear out transient addressmap entries on HUP

If you really want to purge the client DNS cache, the TrackHostExits
mappings, and the virtual address mappings, you should be using NEWNYM
instead.

Fixes bug 1345; bugfix on Tor 0.1.0.1-rc.

Note that this needs more work: now that we aren't nuking the
transient addressmap entries on HUP, we need to make sure that
configuration changes to VirtualAddressMap and TrackHostExits actually
have a reasonable effect.

14 years agoNew smartlist function to see if two lists of strings are equal.
Nick Mathewson [Fri, 13 May 2011 20:18:53 +0000 (16:18 -0400)] 
New smartlist function to see if two lists of strings are equal.

We'll use this to detect changes in CSV options.

14 years agoMerge branch 'feature3076_squashed' into maint-0.2.2
Nick Mathewson [Fri, 13 May 2011 14:43:41 +0000 (10:43 -0400)] 
Merge branch 'feature3076_squashed' into maint-0.2.2

14 years agoAdd a ControlPortFileGroupWritable option
Nick Mathewson [Thu, 12 May 2011 23:17:48 +0000 (19:17 -0400)] 
Add a ControlPortFileGroupWritable option

14 years agoWrite automatically-chosen control ports to a file.
Nick Mathewson [Mon, 9 May 2011 16:13:37 +0000 (12:13 -0400)] 
Write automatically-chosen control ports to a file.

14 years agonew GETINFO command to return list of listeners of a given type
Nick Mathewson [Mon, 2 May 2011 20:44:37 +0000 (16:44 -0400)] 
new GETINFO command to return list of listeners of a given type

14 years agoAdd a new "tor_sockaddr_to_str()" function
Nick Mathewson [Mon, 2 May 2011 20:43:11 +0000 (16:43 -0400)] 
Add a new "tor_sockaddr_to_str()" function

It does what it says on the tin.  It turns out I'll want this in a couple
of places.

14 years agoAdvertise correct DirPort/ORPort when configured with "auto"
Nick Mathewson [Mon, 2 May 2011 19:51:30 +0000 (15:51 -0400)] 
Advertise correct DirPort/ORPort when configured with "auto"

We'll eventually want to do more work here to make sure that the ports
are stable over multiple invocations.  Otherwise, turning your node on
and off will get you a new DirPort/ORPort needlessly.

14 years agoCorrect the signature for is_listening_on_low_port for "auto" ports
Nick Mathewson [Mon, 2 May 2011 19:31:49 +0000 (15:31 -0400)] 
Correct the signature for is_listening_on_low_port for "auto" ports

14 years agoTeach retry_listener about "auto" ports.
Nick Mathewson [Mon, 2 May 2011 19:26:39 +0000 (15:26 -0400)] 
Teach retry_listener about "auto" ports.

Otherwise, it will just immediately close any port declared with "auto"
on the grounds that it wasn't configured.  Now, it will allow "auto" to
match any port.

This means FWIW if you configure a socks port with SocksPort 9999
and then transition to SocksPort auto, the original socksport will
not get closed and reopened.  I'm considering this a feature.

14 years ago"(Socks|Control|etc)Port auto" now tells Tor to open an arbitrary port
Nick Mathewson [Mon, 2 May 2011 19:05:10 +0000 (15:05 -0400)] 
"(Socks|Control|etc)Port auto" now tells Tor to open an arbitrary port

This is the major part of the implementation for trac issue 3076.

14 years agoDowngrade the "we launched 10 circuits for this stream" message. (See bug 3080)
Nick Mathewson [Thu, 12 May 2011 23:41:08 +0000 (19:41 -0400)] 
Downgrade the "we launched 10 circuits for this stream" message. (See bug 3080)

14 years agoMerge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Thu, 12 May 2011 23:25:21 +0000 (19:25 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2

14 years agoMerge remote-tracking branch 'public/bug3122_memcmp_022' into maint-0.2.2
Nick Mathewson [Thu, 12 May 2011 23:25:14 +0000 (19:25 -0400)] 
Merge remote-tracking branch 'public/bug3122_memcmp_022' into maint-0.2.2

14 years agoMerge remote-tracking branch 'public/bug3122_memcmp_squashed' into maint-0.2.1
Nick Mathewson [Thu, 12 May 2011 23:20:40 +0000 (19:20 -0400)] 
Merge remote-tracking branch 'public/bug3122_memcmp_squashed' into maint-0.2.1

14 years agoAdd changes file for bug2503
Nick Mathewson [Thu, 12 May 2011 22:49:28 +0000 (18:49 -0400)] 
Add changes file for bug2503

14 years agoFixes ticket #2503
mikey99 [Thu, 12 May 2011 21:33:09 +0000 (17:33 -0400)] 
Fixes ticket #2503

HTTPS error code 403 is now reported as:
"The https proxy refused to allow connection".
Used a switch statement for additional error codes to be explained
in the future.

14 years agoClean up a formatting issue on the manpge; bug3154.
Nick Mathewson [Thu, 12 May 2011 15:36:20 +0000 (11:36 -0400)] 
Clean up a formatting issue on the manpge; bug3154.

14 years agoUnmap microdesc cache before replacing it.
Nick Mathewson [Thu, 12 May 2011 15:19:52 +0000 (11:19 -0400)] 
Unmap microdesc cache before replacing it.

If we do a replace-then-munmap, windows will never actually rewrite
the microdesc cache.

Found by wanoskarnet; bugfix on 0.2.2.6-alpha.

14 years agoAccept hs descriptors even if we don't see an HSDir for us
Nick Mathewson [Thu, 12 May 2011 04:51:11 +0000 (00:51 -0400)] 
Accept hs descriptors even if we don't see an HSDir for us

The old behavior contributed to unreliability when hidden services and
hsdirs had different consensus versions, and so had different opinions
about who should be cacheing hsdir info.

Bugfix on 0.2.0.10-alpha; based on discussions surrounding bug 2732.

14 years agobug 3026: do not upload our vote to ourself
Nick Mathewson [Thu, 12 May 2011 04:47:00 +0000 (00:47 -0400)] 
bug 3026: do not upload our vote to ourself

14 years agoMerge branch 'bug1352' into maint-0.2.2
Nick Mathewson [Thu, 12 May 2011 04:14:10 +0000 (00:14 -0400)] 
Merge branch 'bug1352' into maint-0.2.2

14 years agoMerge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Thu, 12 May 2011 02:52:26 +0000 (22:52 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2

14 years agoMerge branch 'bug3135' into maint-0.2.1
Nick Mathewson [Thu, 12 May 2011 02:49:44 +0000 (22:49 -0400)] 
Merge branch 'bug3135' into maint-0.2.1

14 years agoFix crash when read_file_to_string() fails in SAVECONF
Nick Mathewson [Thu, 12 May 2011 02:05:41 +0000 (22:05 -0400)] 
Fix crash when read_file_to_string() fails in SAVECONF

The new behavior is to try to rename the old file if there is one there
that we can't read.  In all likelihood, that will fail too, but at least
we tried, and at least it won't crash.

14 years agoHand-tune the new tor_memcmp instances in 0.2.2
Nick Mathewson [Wed, 11 May 2011 20:32:30 +0000 (16:32 -0400)] 
Hand-tune the new tor_memcmp instances in 0.2.2

14 years agoRe-apply the automated conversion to 0.2.2 to make handle any memcmps that snuck in
Nick Mathewson [Wed, 11 May 2011 20:27:27 +0000 (16:27 -0400)] 
Re-apply the automated conversion to 0.2.2 to make handle any memcmps that snuck in

14 years agofwd-port test_util_di_ops into tinytest format
Nick Mathewson [Wed, 11 May 2011 20:25:51 +0000 (16:25 -0400)] 
fwd-port test_util_di_ops into tinytest format

14 years agoMerge remote-tracking branch 'public/3122_memcmp_squashed' into bug3122_memcmp_022
Nick Mathewson [Wed, 11 May 2011 20:23:42 +0000 (16:23 -0400)] 
Merge remote-tracking branch 'public/3122_memcmp_squashed' into bug3122_memcmp_022

Conflicts throughout.  All resolved in favor of taking HEAD and
adding tor_mem* or fast_mem* ops as appropriate.

src/common/Makefile.am
src/or/circuitbuild.c
src/or/directory.c
src/or/dirserv.c
src/or/dirvote.c
src/or/networkstatus.c
src/or/rendclient.c
src/or/rendservice.c
src/or/router.c
src/or/routerlist.c
src/or/routerparse.c
src/or/test.c

14 years agoHand-conversion and audit phase of memcmp transition
Nick Mathewson [Tue, 10 May 2011 20:58:38 +0000 (16:58 -0400)] 
Hand-conversion and audit phase of memcmp transition

Here I looked at the results of the automated conversion and cleaned
them up as follows:

   If there was a tor_memcmp or tor_memeq that was in fact "safe"[*] I
   changed it to a fast_memcmp or fast_memeq.

   Otherwise if there was a tor_memcmp that could turn into a
   tor_memneq or tor_memeq, I converted it.

This wants close attention.

[*] I'm erring on the side of caution here, and leaving some things
as tor_memcmp that could in my opinion use the data-dependent
fast_memcmp variant.

14 years agoAutomated conversion of memcmp to tor_memcmp/tor_mem[n]eq
Nick Mathewson [Tue, 10 May 2011 20:23:43 +0000 (16:23 -0400)] 
Automated conversion of memcmp to tor_memcmp/tor_mem[n]eq

This commit is _exactly_ the result of

perl -i -pe 's/\bmemcmp\(/tor_memcmp\(/g' src/*/*.[ch]
perl -i -pe 's/\!\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch]
perl -i -pe 's/0\s*==\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch]
perl -i -pe 's/0\s*!=\s*tor_memcmp\(/tor_memneq\(/g' src/*/*.[ch]
git checkout src/common/di_ops.[ch]
git checkout src/or/test.c
git checkout src/common/test.h

14 years agoAdd a "di_ops.h" include to util.h
Nick Mathewson [Tue, 10 May 2011 20:19:58 +0000 (16:19 -0400)] 
Add a "di_ops.h" include to util.h

14 years agoAdd a data-independent variant of memcmp and a d-i memeq function.
Nick Mathewson [Mon, 9 May 2011 22:39:23 +0000 (18:39 -0400)] 
Add a data-independent variant of memcmp and a d-i memeq function.

The tor_memcmp code is by Robert Ransom, and the tor_memeq code is
by me.  Both incorporate some ideas from DJB's stuff.

14 years agoMerge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Wed, 11 May 2011 03:05:51 +0000 (23:05 -0400)] 
Merge branch 'maint-0.2.1' into maint-0.2.2

14 years agoUpdate to the May 1 2011 Maxmind GeoLite Country database
Roger Dingledine [Wed, 11 May 2011 03:04:11 +0000 (23:04 -0400)] 
Update to the May 1 2011 Maxmind GeoLite Country database

14 years agoanother changelog heuristic based on 0.2.3.1-alpha
Roger Dingledine [Wed, 11 May 2011 01:30:55 +0000 (21:30 -0400)] 
another changelog heuristic based on 0.2.3.1-alpha

14 years agoMerge remote-tracking branch 'public/bug3022_v2' into maint-0.2.2
Nick Mathewson [Mon, 9 May 2011 17:37:56 +0000 (13:37 -0400)] 
Merge remote-tracking branch 'public/bug3022_v2' into maint-0.2.2

14 years agoMerge branch 'clang_fixes' into maint-0.2.2
Nick Mathewson [Mon, 9 May 2011 17:20:04 +0000 (13:20 -0400)] 
Merge branch 'clang_fixes' into maint-0.2.2

14 years agoRemove some dead code, found by clang
Sebastian Hahn [Tue, 26 Apr 2011 02:50:15 +0000 (04:50 +0200)] 
Remove some dead code, found by clang

14 years agoRemove a duplicated line, found by clang
Sebastian Hahn [Tue, 26 Apr 2011 02:45:48 +0000 (04:45 +0200)] 
Remove a duplicated line, found by clang

14 years agoFix potential null pointer deref during dirvote
Sebastian Hahn [Tue, 26 Apr 2011 02:38:55 +0000 (04:38 +0200)] 
Fix potential null pointer deref during dirvote

Found by using clang's analyzer.

14 years agoFix a potential null deref when rebuilding md cache
Sebastian Hahn [Tue, 26 Apr 2011 02:23:35 +0000 (04:23 +0200)] 
Fix a potential null deref when rebuilding md cache

Issue discovered using clang's static analyzer

14 years agoCONN_LOG_PROTECT()'s first argument may not be 0
Sebastian Hahn [Tue, 26 Apr 2011 01:24:04 +0000 (03:24 +0200)] 
CONN_LOG_PROTECT()'s first argument may not be 0

Make that explicit by adding an assert and removing a null-check. All of
its callers currently depend on the argument being non-null anyway.
Silences a few clang complaints.

14 years agoAppease clang - and my tortured mind
Sebastian Hahn [Tue, 26 Apr 2011 01:01:25 +0000 (03:01 +0200)] 
Appease clang - and my tortured mind

This possible div by 0 warning from clang's analyzer was quite fun to
track down. Turns out the current behaviour is safe.

14 years agoAdd an assert to un-confuse clang's analyzer
Sebastian Hahn [Tue, 26 Apr 2011 00:20:29 +0000 (02:20 +0200)] 
Add an assert to un-confuse clang's analyzer

The analyzer assumed that bootstrap_percent could be less than 0 when we
call control_event_bootstrap_problem(), which would mean we're calling
log_fn() with undefined values. The assert makes it clear this can't
happen.

14 years agoFix a docstring
Sebastian Hahn [Tue, 26 Apr 2011 00:16:24 +0000 (02:16 +0200)] 
Fix a docstring

14 years agoFix up some check-spaces issues
Nick Mathewson [Fri, 6 May 2011 01:53:46 +0000 (21:53 -0400)] 
Fix up some check-spaces issues

14 years agofix the website directions.
Andrew Lewman [Thu, 5 May 2011 19:18:14 +0000 (15:18 -0400)] 
fix the website directions.

14 years agoMerge remote-tracking branch 'rransom/bug3106' into maint-0.2.2
Nick Mathewson [Thu, 5 May 2011 03:18:47 +0000 (23:18 -0400)] 
Merge remote-tracking branch 'rransom/bug3106' into maint-0.2.2

14 years agoHandle crypto_pk_get_digest failures semi-sensibly
Robert Ransom [Thu, 5 May 2011 03:06:24 +0000 (20:06 -0700)] 
Handle crypto_pk_get_digest failures semi-sensibly

Fixes bug 3106.

14 years agoMerge remote-tracking branch 'sebastian/win_warning' into maint-0.2.2
Nick Mathewson [Thu, 5 May 2011 00:33:16 +0000 (20:33 -0400)] 
Merge remote-tracking branch 'sebastian/win_warning' into maint-0.2.2

14 years agoFix compile warning on windows
Sebastian Hahn [Thu, 5 May 2011 00:21:09 +0000 (02:21 +0200)] 
Fix compile warning on windows

14 years agoMerge branch 'bug2379' into maint-0.2.2
Nick Mathewson [Wed, 4 May 2011 21:37:56 +0000 (17:37 -0400)] 
Merge branch 'bug2379' into maint-0.2.2

14 years agoMore notes on how to upload tarballs from erinn
Nick Mathewson [Wed, 4 May 2011 21:21:33 +0000 (17:21 -0400)] 
More notes on how to upload tarballs from erinn

14 years agoAdd some missing torrc entries to tor.1.txt
Nick Mathewson [Wed, 4 May 2011 02:14:40 +0000 (22:14 -0400)] 
Add some missing torrc entries to tor.1.txt

Fixes bug 2379

14 years agoFix circuit_list_path_impl(): internal circuits do not have an "exit". Trivial fix...
Nick Mathewson [Wed, 4 May 2011 01:53:13 +0000 (21:53 -0400)] 
Fix circuit_list_path_impl(): internal circuits do not have an "exit". Trivial fix for 3079.

14 years agoChange who calls microdesc_cache_rebuild().
Nick Mathewson [Tue, 3 May 2011 21:28:28 +0000 (17:28 -0400)] 
Change who calls microdesc_cache_rebuild().

Previously we ensured that it would get called periodically by doing
it from inside the code that added microdescriptors.  That won't work
though: it would interfere with our code that tried to read microdescs
from disk initially.  Instead, we should consider rebuilding the cache
periodically, and on startup.

14 years agoRebuild the microdesc cache when a sufficient number of bytes are dropped
Nick Mathewson [Tue, 3 May 2011 21:03:49 +0000 (17:03 -0400)] 
Rebuild the microdesc cache when a sufficient number of bytes are dropped

Previously on 0.2.2, we'd never clean the cache.  Now that we can
clean it, we want to add a condition to rebuild it: that should happen
whenever we have dropped enough microdescriptors that we could save a
lot of space.

No changes file, since 0.2.3 doesn't need one and 0.2.2 already has some
changes files for the backport of the microdesc_clean_cahce() function.

14 years agoBackport microdesc_cache_clean to 0.2.2
Nick Mathewson [Tue, 3 May 2011 20:45:15 +0000 (16:45 -0400)] 
Backport microdesc_cache_clean to 0.2.2

Otherwise we have no way to keep authorities' microdesc caches in 0.2.2
from growing without bound.

14 years agoFix a check for when to rebuild the microdesc cache. (Backport from 0.2.3.
Nick Mathewson [Tue, 3 May 2011 20:29:39 +0000 (16:29 -0400)] 
Fix a check for when to rebuild the microdesc cache. (Backport from 0.2.3.

14 years agoAdd missing code to set cache->journal_len when reading microdesc journal
Nick Mathewson [Tue, 3 May 2011 20:22:31 +0000 (16:22 -0400)] 
Add missing code to set cache->journal_len when reading microdesc journal

This could be one reason that authorities' journals would grow without
bound; related to bug 2230. Bugfix on 0.2.2.6-alpha.  Fix by
"cypherpunks".

14 years agoAdd a couple of notes to doc/HACKING based on 0.2.2.25-alpha process
Nick Mathewson [Mon, 2 May 2011 18:45:44 +0000 (14:45 -0400)] 
Add a couple of notes to doc/HACKING based on 0.2.2.25-alpha process

14 years agoClean up a warning a bit
Nick Mathewson [Fri, 29 Apr 2011 15:14:53 +0000 (11:14 -0400)] 
Clean up a warning a bit

14 years agoadd another heuristic for changes stanzas
Roger Dingledine [Fri, 29 Apr 2011 05:35:21 +0000 (01:35 -0400)] 
add another heuristic for changes stanzas

14 years agoUpdate hacking file with terse notes on formatting changelog
Nick Mathewson [Fri, 29 Apr 2011 03:44:48 +0000 (23:44 -0400)] 
Update hacking file with terse notes on formatting changelog

14 years agoRate-limit v2 networkstatus download fail warnings
Nick Mathewson [Fri, 29 Apr 2011 01:25:24 +0000 (21:25 -0400)] 
Rate-limit v2 networkstatus download fail warnings

This fixes part of 1352.  We don't care deeply about these warnings,
since v2 networkstatuses aren't a big deal.

14 years agoRename connection_dir_download_networkstatus_failed: be clear that it means v2
Nick Mathewson [Fri, 29 Apr 2011 01:23:32 +0000 (21:23 -0400)] 
Rename connection_dir_download_networkstatus_failed: be clear that it means v2

14 years agoMerge remote-tracking branch 'arma/bug3012' into maint-0.2.2
Nick Mathewson [Fri, 29 Apr 2011 01:15:14 +0000 (21:15 -0400)] 
Merge remote-tracking branch 'arma/bug3012' into maint-0.2.2

14 years agorelays checkpoint their state file twice a day
Roger Dingledine [Fri, 29 Apr 2011 01:06:25 +0000 (21:06 -0400)] 
relays checkpoint their state file twice a day

14 years agoOnly authorities should automatically download v2 networkstatus documents
Nick Mathewson [Thu, 28 Apr 2011 14:05:32 +0000 (10:05 -0400)] 
Only authorities should automatically download v2 networkstatus documents

Clients and relays haven't used them since early 0.2.0.x.  The only
remaining use by authorities learning about new relays ahead of scedule;
see proposal 147 for what we intend to do about that.

We're leaving in an option (FetchV2Networkstatus) to manually fetch v2
networkstatuses, because apparently dnsel and maybe bwauth want them.

This fixes bug 3022.

14 years agoMerge remote-tracking branch 'arma/bug3039' into maint-0.2.2
Nick Mathewson [Fri, 29 Apr 2011 00:53:44 +0000 (20:53 -0400)] 
Merge remote-tracking branch 'arma/bug3039' into maint-0.2.2

14 years agostop putting wacky values into state->lastwritten
Roger Dingledine [Fri, 29 Apr 2011 00:40:15 +0000 (20:40 -0400)] 
stop putting wacky values into state->lastwritten