]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Backport to 0.2.0.x: Apply rovv's fix for bug 824.
authorNick Mathewson <nickm@torproject.org>
Fri, 26 Sep 2008 15:31:21 +0000 (15:31 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 26 Sep 2008 15:31:21 +0000 (15:31 +0000)
svn:r16976

ChangeLog
src/or/connection.c

index 5d8edd1bb5e05bd62ab4a2193e4f2cec7dfc96ba..ba336154abc4b4b59bfdd1998feccc6de6e38c66 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,11 @@ Changes in version 0.2.0.32 - 2008-??-??
       port 80, we would previously reject the connection. Now, we assume
       the user knows what they were asking for. Fixes bug 752. Bugfix
       on 0.0.9rc5. Diagnosed by BarkerJr.
+    - If we overrun our per-second write limits a little, count this as
+      having used up our write allocation for the second, and choke outgoing
+      directory writes.  Previously, we had only counted this when we
+      had met our limits precisely. Fixes bug 824. Patch from by rovv.
+      Bugfix on 0.2.0.x (??).
 
 
 Changes in version 0.2.0.31 - 2008-09-03
index 8c7b6a5dd86601de069ee1fc0eafd4419dbd9dcb..630ef6f8b8e673470bd2adb212d3042b2634326f 100644 (file)
@@ -1718,7 +1718,7 @@ connection_bucket_refill(int seconds_elapsed, time_t now)
   tor_assert(seconds_elapsed >= 0);
 
   write_buckets_empty_last_second =
-    global_relayed_write_bucket == 0 || global_write_bucket == 0;
+    global_relayed_write_bucket <= 0 || global_write_bucket <= 0;
 
   /* refill the global buckets */
   connection_bucket_refill_helper(&global_read_bucket,