reinit per-conn token buckets on config or consensus change

This commit is contained in:
Roger Dingledine
2010-08-15 04:01:42 -04:00
parent 2bc1842aaa
commit 8d588e7b1a
5 changed files with 54 additions and 8 deletions
+9
View File
@@ -0,0 +1,9 @@
o Major bugfixes:
- The PerConnBWRate and Burst config options, along with the
bwconnrate and bwconnburst consensus params, initialized each conn's
token bucket values only when the connection is established. Now
update them if the config options change, and update them every time
we get a new consensus. Otherwise we can encounter an ugly edge
case where we initialize an OR conn to client-level bandwidth,
but then later the relay joins the consensus and we leave it
throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.