summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-07-31 13:48:41 -0400
committerNick Mathewson <nickm@torproject.org>2010-08-17 11:55:39 -0400
commit6f58481335ac4ce9a1bbeb35218aee3c2274744d (patch)
tree75ba2df882a73304c04f9d6c9fecabb198d2e5be /changes
parentb958eae573fd1e2817df628e29d937e2683630ea (diff)
downloadtor-6f58481335ac4ce9a1bbeb35218aee3c2274744d.tar.gz
tor-6f58481335ac4ce9a1bbeb35218aee3c2274744d.zip
Scale CONSENSUS_MIN_SECONDS_BEFORE_CACHING by voting interval
If the voting interval was short enough, the two-minutes delay of CONSENSUS_MIN_SECONDS_BEFORE_CACHING would confuse bridges to the point where they would assert before downloading a consensus. It it was even shorter (<4 minutes, I think), caches would assert too. This patch fixes that by having replacing the two-minutes value with MIN(2 minutes, interval/16). Bugfix for 1141; the cache bug could occur since 0.2.0.8-alpha, so I'm calling this a bugfix on that. Robert Hogan diagnosed this. Done as a patch against maint-0.2.1, since it makes it hard to run some kinds of testing networks.
Diffstat (limited to 'changes')
-rw-r--r--changes/bug11415
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug1141 b/changes/bug1141
new file mode 100644
index 0000000000..9975e418d6
--- /dev/null
+++ b/changes/bug1141
@@ -0,0 +1,5 @@
+ o Minor bugfixes:
+ - Fix an assertion failure that could occur in caches or bridge users
+ when using a very short voting interval on a testing network.
+ Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
+