]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
16 years agoApply fix for bug 997.
Karsten Loesing [Fri, 12 Jun 2009 09:39:35 +0000 (11:39 +0200)] 
Apply fix for bug 997.

Hidden service clients didn't use a cached service descriptor that
was older than 15 minutes, but wouldn't fetch a new one either. Now,
use a cached descriptor no matter how old it is and only fetch a new
one when all introduction points fail. Fix for bug 997. Patch from
Marcus Griep.

16 years agoRestore changes from f79688d that got lost somehow during a merge.
Karsten Loesing [Fri, 12 Jun 2009 00:05:21 +0000 (02:05 +0200)] 
Restore changes from f79688d that got lost somehow during a merge.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Mon, 8 Jun 2009 04:01:31 +0000 (00:01 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoMissing changelog entry about geoip
Nick Mathewson [Mon, 8 Jun 2009 04:00:54 +0000 (00:00 -0400)] 
Missing changelog entry about geoip

16 years agoFinish an incomplete sentence in a proposal.
Nick Mathewson [Mon, 8 Jun 2009 03:53:05 +0000 (23:53 -0400)] 
Finish an incomplete sentence in a proposal.

16 years agoproposals tweaks patch
Roger Dingledine [Sun, 7 Jun 2009 19:07:23 +0000 (15:07 -0400)] 
proposals tweaks patch

is attached

--roger

>From 674f087ab98e1711bb533acf23ee88c7c2a1dfdb Mon Sep 17 00:00:00 2001
From: Roger Dingledine <arma@torproject.org>
Date: Sun, 7 Jun 2009 14:37:32 -0400
Subject: [PATCH] minor edits on proposals

16 years agoMove and fix a changelog entry. Noticed by optimist.
Nick Mathewson [Sun, 7 Jun 2009 04:03:27 +0000 (00:03 -0400)] 
Move and fix a changelog entry.  Noticed by optimist.

16 years agospelling fixes for proposals
Sebastian Hahn [Sat, 30 May 2009 01:15:54 +0000 (03:15 +0200)] 
spelling fixes for proposals

16 years agoAvoid a memory corruption problem related to "private" in DirPolicy.
Nick Mathewson [Fri, 5 Jun 2009 23:41:40 +0000 (19:41 -0400)] 
Avoid a memory corruption problem related to "private" in DirPolicy.

This is a posible fix for bug 996.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Thu, 4 Jun 2009 07:31:12 +0000 (03:31 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoUpdate the rest of the geoip file.
Karsten Loesing [Wed, 3 Jun 2009 22:47:58 +0000 (00:47 +0200)] 
Update the rest of the geoip file.

16 years agoUpdate the geoip file
Nick Mathewson [Wed, 3 Jun 2009 21:35:41 +0000 (17:35 -0400)] 
Update the geoip file

16 years agoFix gprof bottlenecks on exit nodes found by Jacob.
Nick Mathewson [Wed, 3 Jun 2009 17:52:03 +0000 (13:52 -0400)] 
Fix gprof bottlenecks on exit nodes found by Jacob.

Apparently all the stuff that does a linear scan over all the DNS
cache entries can get really expensive when your DNS cache is very
large.  It's hard to say how much this will help performance, since
gprof doesn't count time spent in OpenSSL or zlib, but I'd guess 10%.

Also, this patch removes calls to assert_connection_ok() from inside
the read and write callbacks, which are similarly unneeded, and a
little costlier than I'm happy with.

This is probably worth backporting to 0.2.0.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Sun, 31 May 2009 23:17:22 +0000 (19:17 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoDo not report a node as a "chosen exit" when it is not in fact an exit.
Nick Mathewson [Wed, 27 May 2009 18:07:41 +0000 (14:07 -0400)] 
Do not report a node as a "chosen exit" when it is not in fact an exit.

Provide a useful warning when launch_circuit tries to make us use a
node we don't want to use.  Just give an info message when this is a
normal and okay situation.  Fix for logging issues in bug 984.

16 years agoMake the second argument to routerset_contains_extendinfo const
Nick Mathewson [Wed, 27 May 2009 18:45:44 +0000 (14:45 -0400)] 
Make the second argument to routerset_contains_extendinfo const

16 years agoMerge branch 'hardware_accel_improvements'
Nick Mathewson [Sun, 31 May 2009 17:36:50 +0000 (13:36 -0400)] 
Merge branch 'hardware_accel_improvements'

16 years agoFix-ups for dynamic OpenSSL engine patch.
Nick Mathewson [Sun, 31 May 2009 17:36:18 +0000 (13:36 -0400)] 
Fix-ups for dynamic OpenSSL engine patch.

Include a changelog, and don't try to compare strings with !=.

16 years agoMerge commit 'weasel/debian'
Nick Mathewson [Sat, 30 May 2009 22:26:46 +0000 (18:26 -0400)] 
Merge commit 'weasel/debian'

16 years agoDon't attempt to log messages to a controller from a worker thread.
Nick Mathewson [Fri, 29 May 2009 14:18:50 +0000 (10:18 -0400)] 
Don't attempt to log messages to a controller from a worker thread.

This patch adds a function to determine whether we're in the main
thread, and changes control_event_logmsg() to return immediately if
we're in a subthread.  This is necessary because otherwise we will
call connection_write_to_buf, which modifies non-locked data
structures.

Bugfix on 0.2.0.x; fix for at least one of the things currently
called "bug 977".

16 years agoRemove warning about untested HardwareAccel option and clarify usage.
Martin Peck [Sat, 30 May 2009 22:15:43 +0000 (15:15 -0700)] 
Remove warning about untested HardwareAccel option and clarify usage.

16 years agoWarn and exit when we are configured to measure GeoIP statistics, but have no GeoIP...
Karsten Loesing [Sat, 30 May 2009 21:35:21 +0000 (23:35 +0200)] 
Warn and exit when we are configured to measure GeoIP statistics, but have no GeoIP database.

16 years agoAdd documentation for new AccelName and AccelDir dynamic hardware acceleration engine...
Martin Peck [Sat, 30 May 2009 20:53:35 +0000 (13:53 -0700)] 
Add documentation for new AccelName and AccelDir dynamic hardware acceleration engine options.

16 years agoChange build time dependency on gs to ghostscript.
Peter Palfrader [Sat, 30 May 2009 19:10:21 +0000 (21:10 +0200)] 
Change build time dependency on gs to ghostscript.

16 years agoNew upstream version
Peter Palfrader [Sat, 30 May 2009 18:52:02 +0000 (20:52 +0200)] 
New upstream version

16 years agoClean up a bit of C logic, and fix an erroneous warning.
Nick Mathewson [Sat, 30 May 2009 03:28:01 +0000 (23:28 -0400)] 
Clean up a bit of C logic, and fix an erroneous warning.

(Simplify "if (cond) return 1; return 0;" to "return cond;", and don't
give a warning when we start with accounting on but dirport off.)

16 years agoConsider *ListenAddress when warning about low ports and hibernation
Sebastian Hahn [Tue, 26 May 2009 10:41:45 +0000 (12:41 +0200)] 
Consider *ListenAddress when warning about low ports and hibernation

Tas (thanks!) noticed that when *ListenAddress is set, Tor would
still warn on startup when *Port is low and hibernation is active.
The patch parses all the *ListenAddress lines, and checks the
ports. Bugfix on 0.2.1.15-rc

16 years agoUpdate 0.2.2 TODO item status
Nick Mathewson [Fri, 29 May 2009 19:12:38 +0000 (15:12 -0400)] 
Update 0.2.2 TODO item status

16 years agoClarify some of proposal 165 based on discussion
Nick Mathewson [Fri, 29 May 2009 18:51:32 +0000 (14:51 -0400)] 
Clarify some of proposal 165 based on discussion

16 years agoRestore changes from Karsten's "Remove unused rendversion parameters".
Nick Mathewson [Thu, 28 May 2009 20:19:05 +0000 (16:19 -0400)] 
Restore changes from Karsten's "Remove unused rendversion parameters".

These were made undone by a merge.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Thu, 28 May 2009 20:07:49 +0000 (16:07 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoProposal 165: Easy migration for voting authority sets.
Nick Mathewson [Thu, 28 May 2009 16:48:38 +0000 (12:48 -0400)] 
Proposal 165: Easy migration for voting authority sets.

This proposal tries to do what 134 tried to do, but more securely and
with less whiz-bang NP-hard computation.  Peter had the basic idea.

16 years agoTwo more spelling fix fixes.
Nick Mathewson [Thu, 28 May 2009 16:26:17 +0000 (12:26 -0400)] 
Two more spelling fix fixes.

16 years agoFixes to spelling fixes. Thanks, Roger!
Nick Mathewson [Thu, 28 May 2009 15:54:56 +0000 (11:54 -0400)] 
Fixes to spelling fixes.  Thanks, Roger!

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Wed, 27 May 2009 22:12:18 +0000 (18:12 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoFix unit tests that were broken after last fix of #932.
Karsten Loesing [Wed, 27 May 2009 21:47:59 +0000 (23:47 +0200)] 
Fix unit tests that were broken after last fix of #932.

With the last fix of task 932 (5f03d6c), client requests are only added to
the history when they happen after the start of the current history. This
conflicts with the unit tests that insert current requests first (defining
the start of the client request history) followed by requests in the past.
The fix is to insert requests in chronological order in the unit tests.

16 years agoSpell-check Tor.
Nick Mathewson [Wed, 27 May 2009 21:55:51 +0000 (17:55 -0400)] 
Spell-check Tor.

16 years agoSpelling fixes in comments and strings
Nick Mathewson [Wed, 27 May 2009 20:35:03 +0000 (16:35 -0400)] 
Spelling fixes in comments and strings

16 years agoReject proposal 134
Nick Mathewson [Wed, 27 May 2009 18:33:44 +0000 (14:33 -0400)] 
Reject proposal 134

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Wed, 27 May 2009 18:20:18 +0000 (14:20 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoFix a signed/unsigned comparison warning
Nick Mathewson [Wed, 27 May 2009 18:19:24 +0000 (14:19 -0400)] 
Fix a signed/unsigned comparison warning

16 years agoChangelog entry for Karsten's bug-932 patch.
Nick Mathewson [Wed, 27 May 2009 18:11:38 +0000 (14:11 -0400)] 
Changelog entry for Karsten's bug-932 patch.

16 years agoChange the way how directories that are configured with --enable-geoip-stats write...
Karsten Loesing [Wed, 27 May 2009 15:52:46 +0000 (17:52 +0200)] 
Change the way how directories that are configured with --enable-geoip-stats write geoip stats to disk.

- Write geoip stats to disk every 24 hours, not every hour.
- Remove configuration options and define reasonable defaults.
- Clear history of client requests every 24 hours (which wasn't done at
  all before).

16 years agoImprove documentation for the last fix of bug 932.
Karsten Loesing [Tue, 26 May 2009 20:02:52 +0000 (22:02 +0200)] 
Improve documentation for the last fix of bug 932.

16 years agoFix bug 932 even more.
Karsten Loesing [Tue, 26 May 2009 19:41:42 +0000 (21:41 +0200)] 
Fix bug 932 even more.

Ignore connections two hours after switching from bridge to relay or back.

16 years agoAdd *.swp to .gitignore as vim's editor dropping.
Nick Mathewson [Wed, 27 May 2009 16:10:37 +0000 (12:10 -0400)] 
Add *.swp to .gitignore as vim's editor dropping.

16 years agoSome cleanups on geoip.c.
Karsten Loesing [Tue, 26 May 2009 19:32:56 +0000 (21:32 +0200)] 
Some cleanups on geoip.c.

Use two bitfields for last_seen and action in clientmap_entry_t rather
than having both share a 32-bit. Also, documentation fixes.

16 years agoMerge commit 'origin/maint-0.2.1' into master.
Nick Mathewson [Mon, 25 May 2009 20:43:52 +0000 (16:43 -0400)] 
Merge commit 'origin/maint-0.2.1' into master.

Conflicts:
ChangeLog
configure.in
contrib/tor-mingw.nsi.in
src/win32/orconfig.h

16 years agoUse tor_socket_strerror in eventdns.c. Fixes bug 987.
Nick Mathewson [Mon, 25 May 2009 20:38:50 +0000 (16:38 -0400)] 
Use tor_socket_strerror in eventdns.c. Fixes bug 987.

16 years agoBump version to 0.2.1.15-rc-dev.
Nick Mathewson [Mon, 25 May 2009 20:32:47 +0000 (16:32 -0400)] 
Bump version to 0.2.1.15-rc-dev.

16 years agobump to 0.2.1.15-rc tor-0.2.1.15-rc
Roger Dingledine [Mon, 25 May 2009 17:23:08 +0000 (13:23 -0400)] 
bump to 0.2.1.15-rc

16 years agoadd the 0.2.1.14-rc blurb
Roger Dingledine [Mon, 25 May 2009 17:16:45 +0000 (13:16 -0400)] 
add the 0.2.1.14-rc blurb

16 years agoclean up the 0.2.1.15-rc changelog
Roger Dingledine [Mon, 25 May 2009 17:14:58 +0000 (13:14 -0400)] 
clean up the 0.2.1.15-rc changelog

16 years agoUpdate newer control_event_stream_bandwidth code to revised control impl
Nick Mathewson [Mon, 25 May 2009 16:55:59 +0000 (12:55 -0400)] 
Update newer control_event_stream_bandwidth code to revised control impl

16 years agoRemove support for events without the extended format or long names.
Nick Mathewson [Fri, 8 May 2009 16:12:20 +0000 (12:12 -0400)] 
Remove support for events without the extended format or long names.

Supporting the old formats made our code complex; running without them
has been discouraged since 0.2.1.x.

16 years agonote that proposal 160 is written. note that section 4.5 is done.
Roger Dingledine [Sun, 24 May 2009 21:03:13 +0000 (17:03 -0400)] 
note that proposal 160 is written. note that section 4.5 is done.

16 years agosimplify options_act()
Roger Dingledine [Sun, 24 May 2009 21:01:30 +0000 (17:01 -0400)] 
simplify options_act()

16 years agofix a comment
Roger Dingledine [Sun, 24 May 2009 21:01:02 +0000 (17:01 -0400)] 
fix a comment

16 years agoearly thoughts on a safer way to reach a service via a particular exit.
Roger Dingledine [Sun, 24 May 2009 21:05:13 +0000 (17:05 -0400)] 
early thoughts on a safer way to reach a service via a particular exit.

16 years agoadd mikeperry's notes about fairer round-robin for rate limiting
Roger Dingledine [Sun, 24 May 2009 21:04:31 +0000 (17:04 -0400)] 
add mikeperry's notes about fairer round-robin for rate limiting

16 years agofix codestyle issues
Sebastian Hahn [Sun, 24 May 2009 00:42:37 +0000 (02:42 +0200)] 
fix codestyle issues

16 years agoAdd support for dynamic OpenSSL hardware crypto acceleration engines.
Martin Peck [Sat, 23 May 2009 23:42:44 +0000 (16:42 -0700)] 
Add support for dynamic OpenSSL hardware crypto acceleration engines.

16 years agoLog the number and size of DNS cache entries on SIGUSR1.
Jacob Appelbaum [Sat, 23 May 2009 03:33:44 +0000 (23:33 -0400)] 
Log the number and size of DNS cache entries on SIGUSR1.

Specifically if you send SIGUSR1, it will add two lines to the log file:
May 22 07:41:59.576 [notice] Our DNS cache has 3364 entries.
May 22 07:41:59.576 [notice] Our DNS cache size is approximately 1022656
bytes.

[tweaked a bit by nickm]

16 years agoAdd a quick macro to calculate hashtable memory usage
Nick Mathewson [Sat, 23 May 2009 03:30:52 +0000 (23:30 -0400)] 
Add a quick macro to calculate hashtable memory usage

16 years ago[prop140] Note another useful restriction of ed format.
Nick Mathewson [Fri, 22 May 2009 19:55:40 +0000 (15:55 -0400)] 
[prop140] Note another useful restriction of ed format.

16 years agoImproved bug-957 fix for 0.2.2.
Nick Mathewson [Fri, 22 May 2009 18:06:39 +0000 (14:06 -0400)] 
Improved bug-957 fix for 0.2.2.

Really, our idiocy was that we were calling event_set() on the same
event more than once, which sometimes led to us calling event_set() on
an event that was already inserted, thus making it look uninserted.
With this patch, we just initialize the timeout events when we create
the requests and nameservers, and we don't need to worry about
double-add and double-del cases at all.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Fri, 22 May 2009 15:56:51 +0000 (11:56 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoFinish up the 0.2.1 version of the bug 957 fix.
Nick Mathewson [Fri, 22 May 2009 15:47:09 +0000 (11:47 -0400)] 
Finish up the 0.2.1 version of the bug 957 fix.

Basically, all this means is downgrading our warning messages to debug
messages, since the bug workaround code here is adequate to stop the
bug.

16 years agoShort proposal on reporting why authorities voted as they did
Nick Mathewson [Fri, 22 May 2009 06:58:42 +0000 (02:58 -0400)] 
Short proposal on reporting why authorities voted as they did

16 years agoNew short proposal about detecting if a node is a client.
Nick Mathewson [Fri, 22 May 2009 06:57:54 +0000 (02:57 -0400)] 
New short proposal about detecting if a node is a client.

16 years agofix a spelling mistake in config.c for "contries"
phobos [Fri, 22 May 2009 05:19:55 +0000 (01:19 -0400)] 
fix a spelling mistake in config.c for "contries"

16 years agoFinish incomplete sentence.
Mike Perry [Fri, 22 May 2009 04:38:50 +0000 (21:38 -0700)] 
Finish incomplete sentence.

16 years agoUpdate proposal 160 with comments from mailinglist.
Mike Perry [Wed, 20 May 2009 04:24:18 +0000 (21:24 -0700)] 
Update proposal 160 with comments from mailinglist.

Also add implementation details and a timestampt to the output of 161.

16 years agoClearer valgrind instructions for non-Debian openssls
Nick Mathewson [Tue, 19 May 2009 14:40:20 +0000 (10:40 -0400)] 
Clearer valgrind instructions for non-Debian openssls

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Mon, 18 May 2009 20:17:12 +0000 (16:17 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoPossible fix for crash bug related to event timeouts. [Bug 957]
Nick Mathewson [Mon, 18 May 2009 20:12:39 +0000 (16:12 -0400)] 
Possible fix for crash bug related to event timeouts. [Bug 957]

If we ever add an event, then set it, then add it again, there will be
now two pointers to the event in the event base.  If we delete one and
free it, the first pointer will still be there, and possibly cause a
crash later.

This patch adds detection for this case to the code paths in
eventdns.c, and works around it.  If the warning message ever
displays, then a cleverer fix is in order.

{I am not too confident that this *is* the fix, since bug 957 is very
tricky.  If it is, it is a bugfix on 0.2.0.}

16 years agoMerge branch 'maint-0.2.1' into merge_tmp
Nick Mathewson [Sun, 17 May 2009 06:11:34 +0000 (02:11 -0400)] 
Merge branch 'maint-0.2.1' into merge_tmp

16 years agoFix a memory leak when v3 directory authorities load their keys
Roger Dingledine [Sun, 17 May 2009 05:22:29 +0000 (01:22 -0400)] 
Fix a memory leak when v3 directory authorities load their keys
and cert from disk. Bugfix on 0.2.0.1-alpha.

16 years agoFix valgrind error when marking a descriptor as never-downloadable.
Nick Mathewson [Sun, 17 May 2009 06:01:09 +0000 (02:01 -0400)] 
Fix valgrind error when marking a descriptor as never-downloadable.

When we got a descriptor that we (as an authority) rejected as totally
bad, we were freeing it, then using the digest in its RAM to look up its
download status.  Caught by arma with valgrind.  Bugfix on 0.2.1.9-alpha.

16 years agoStop using malloc_usable_size(): valgrind hates it.
Nick Mathewson [Sun, 17 May 2009 05:55:02 +0000 (01:55 -0400)] 
Stop using malloc_usable_size(): valgrind hates it.

16 years agoMerge branch 'maint-0.2.1'
Nick Mathewson [Sun, 17 May 2009 05:23:08 +0000 (01:23 -0400)] 
Merge branch 'maint-0.2.1'

16 years agominor tweak on changelog entries
Roger Dingledine [Sun, 17 May 2009 04:51:23 +0000 (00:51 -0400)] 
minor tweak on changelog entries

16 years agominor tweak on changelog entries
Roger Dingledine [Sun, 17 May 2009 04:51:23 +0000 (00:51 -0400)] 
minor tweak on changelog entries

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Sun, 17 May 2009 04:05:38 +0000 (00:05 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoFix an assertion-failure in memarea_alloc() on 64-bit platforms.
Nick Mathewson [Sun, 17 May 2009 03:57:30 +0000 (23:57 -0400)] 
Fix an assertion-failure in memarea_alloc() on 64-bit platforms.

The trick is that we should assert that our next_mem pointer has not
run off the end of the array _before_ we realign the pointer, since
doing that could take us over the end... but only if we're on a system
where malloc() gives us ram in increments smaller than sizeof(void*).

16 years agoNew proposal draft about migrating ciphers and hashes in the Tor protocol.
Marian [Sat, 16 May 2009 15:57:26 +0000 (11:57 -0400)] 
New proposal draft about migrating ciphers and hashes in the Tor protocol.

16 years agoMajor revision of proposal 158.
Nick Mathewson [Sat, 16 May 2009 04:42:27 +0000 (00:42 -0400)] 
Major revision of proposal 158.

The big changes are to go from a "caches compute the micro-descriptor"
format to an "authorities generate microdescriptors" format.

See or-dev discussions of January 2009 for full rationales.

16 years agoAdd acks section to prop 162.
Nick Mathewson [Fri, 15 May 2009 20:32:18 +0000 (16:32 -0400)] 
Add acks section to prop 162.

16 years agoAdd new proposal 162: "Publish the consensus in multiple flavors"
Nick Mathewson [Fri, 15 May 2009 17:03:42 +0000 (13:03 -0400)] 
Add new proposal 162: "Publish the consensus in multiple flavors"

16 years agoUpdate proposal 161 to reflect mailinglist discussion.
Mike Perry [Thu, 14 May 2009 11:57:41 +0000 (04:57 -0700)] 
Update proposal 161 to reflect mailinglist discussion.

16 years agoFix misreporting of stream bandwidths.
Mike Perry [Thu, 14 May 2009 12:20:27 +0000 (05:20 -0700)] 
Fix misreporting of stream bandwidths.

16 years agoFix misreporting of stream bandwidths.
potentiate [Thu, 14 May 2009 12:20:27 +0000 (05:20 -0700)] 
Fix misreporting of stream bandwidths.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Wed, 13 May 2009 20:55:42 +0000 (16:55 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoChangelog entries for bug932 fixes
Nick Mathewson [Wed, 13 May 2009 20:44:10 +0000 (16:44 -0400)] 
Changelog entries for bug932 fixes

16 years agoUse | with flags, not +.
Nick Mathewson [Wed, 13 May 2009 20:43:51 +0000 (16:43 -0400)] 
Use | with flags, not +.

16 years agoPrevent bridges from publishing router descriptors.
Karsten Loesing [Wed, 13 May 2009 16:14:29 +0000 (18:14 +0200)] 
Prevent bridges from publishing router descriptors.

Bridges are not supposed to publish router descriptors to the directory
authorities. It defeats the point of bridges when they are included in the
public relay directory.

This patch puts out a warning and exits when the node is configured as
a bridge and to publish v1, v2, or v3 descriptors at the same time.

Also fixes part of bug 932.

16 years agoWhen our bridge status changes, forget old geoip data.
Nick Mathewson [Tue, 12 May 2009 19:35:53 +0000 (15:35 -0400)] 
When our bridge status changes, forget old geoip data.

This fixes bug 932, where all of our usage totals for users when we
were a regular server would get included in the extrainfo document.

16 years agoUse a mutex to protect the count of open sockets.
Nick Mathewson [Tue, 12 May 2009 20:17:32 +0000 (16:17 -0400)] 
Use a mutex to protect the count of open sockets.

This matters because a cpuworker can close its socket when it
finishes.  Cpuworker typically runs in another thread, so without a
lock here, we can have a race condition and get confused about how
many sockets are open.  Possible fix for bug 939.

16 years agoAdd proposal 161: computing bandwidth adjustments
Nick Mathewson [Wed, 13 May 2009 03:00:05 +0000 (23:00 -0400)] 
Add proposal 161: computing bandwidth adjustments

16 years agoAdd sentinel values to the end of memarea chunks.
Nick Mathewson [Tue, 12 May 2009 19:10:23 +0000 (15:10 -0400)] 
Add sentinel values to the end of memarea chunks.

This might detect some possible causes of bug 930, and will at least
make sure we aren't doing some dumb memory-corruption stuff with the heap
and router-parsing.