Roger Dingledine [Sun, 12 Apr 2009 07:56:58 +0000 (07:56 +0000)]
Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
bytes (aka 20KB/s), to match our documentation. Also update
directory authorities so they always assign the Fast flag to relays
with 20KB/s of capacity. Now people running relays won't suddenly
find themselves not seeing any use, if the network gets faster
on average.
Roger Dingledine [Sat, 11 Apr 2009 18:09:15 +0000 (18:09 +0000)]
Finally fix the bug where dynamic-IP relays disappear when their
IP address changes: directory mirrors were mistakenly telling them
their old address if they asked via begin_dir, so they never got
an accurate answer about their new address, so they just vanished
after a day. Should fix bugs 827, 883, and 900 -- but alas, only
after every directory mirror has upgraded.
Roger Dingledine [Sat, 11 Apr 2009 12:06:27 +0000 (12:06 +0000)]
only log that at loglevel notice if there's a problem with the
version. otherwise there's no reason to tell the user we're
doing behind-the-scenes cleaning.
Roger Dingledine [Sat, 11 Apr 2009 12:00:18 +0000 (12:00 +0000)]
Clients replace entry guards that were chosen more than a few months
ago. This change should significantly improve client performance,
especially once more people upgrade, since relays that have been
a guard for a long time are currently overloaded.
Roger Dingledine [Tue, 31 Mar 2009 04:03:37 +0000 (04:03 +0000)]
Limit uploaded directory documents to be 16M rather than 500K.
The directory authorities were refusing v3 consensus votes from
other authorities, since the votes are now 504K. Fixes bug 959;
bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
Nick Mathewson [Wed, 18 Mar 2009 14:35:24 +0000 (14:35 +0000)]
Don't double-free successful_uploads.
When we used smartlist_free to free the list of succesful uploads
because we had succeeded in uploading everywhere, we did not actually
set the successful_uploads field to NULL, so later it would get freed
again in rend_service_descriptor_free. Fix for bug 948; bug
introduced in 0.2.1.6-alpha.
Mike Perry [Mon, 16 Mar 2009 07:56:01 +0000 (07:56 +0000)]
Update translation doc with info on two options for new
string creation workflow. It is unclear at this point
which of the two are the lesser evil, so both are included.
Bugfix on r17756:
Avoid trying to print raw memory to the logs when we decide to
give up on downloading a given relay descriptor. Bugfix on
0.2.1.9-alpha.
We were already rejecting relay begin cells with destination port
of 0. Now also reject extend cells with destination port or address
of 0. Suggested by lark.
Nick Mathewson [Tue, 3 Mar 2009 18:02:31 +0000 (18:02 +0000)]
Add a simple locale-independent no-surprises sscanf replacement.
tor_sscanf() only handles %u and %s for now, which will make it
adequate to replace sscanf() for date/time/IP parsing. We want this
to prevent attackers from constructing weirdly formed descriptors,
cells, addresses, HTTP responses, etc, that validate under some
locales but not others.
Nick Mathewson [Mon, 2 Mar 2009 19:15:05 +0000 (19:15 +0000)]
Add and use set/get_uint64 on onion tags. [bug 604; backportable]
It seems that 64-bit Sparc Solaris demands 64-bit-aligned access to
uint64_t, but does not 64-bit-align the stack-allocated char array we
use for cpuworker tags. So this patch adds a set/get_uint64 pair, and
uses them to access the conn_id field in the tag.
Nick Mathewson [Sat, 21 Feb 2009 19:07:05 +0000 (19:07 +0000)]
Patch from lark: if we get two extend cells for the same circuit id, drop the second. Previously, we had leaked an extend_info if the target connection was not open when the second arrived.
Nick Mathewson [Mon, 16 Feb 2009 15:15:06 +0000 (15:15 +0000)]
Possible fix for broken country settings in ExcludeExitNodes.
It turns out that we weren't updating the _ExcludeExitNodesUnion set's
country numbers when we reloaded (or first loaded!) the IP-to-country
file. Spotted by Lark. Bugfix on 0.2.1.6-alpha.
Roger Dingledine [Fri, 13 Feb 2009 04:11:14 +0000 (04:11 +0000)]
If the controller claimed responsibility for a stream, but that
stream never finished making its connection, it would live
forever in circuit_wait state. Now we close it after SocksTimeout
seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
Nick Mathewson [Wed, 11 Feb 2009 17:22:34 +0000 (17:22 +0000)]
I worry that the CLEAR() macro in eventdns.c is hiding bugs. That is sad, because it was meant to make them more detectable. Change it to change stuff to garbage rather than to 0. If no bugs turn up, we can remove it in 0.2.2.x