aboutsummaryrefslogtreecommitdiff
path: root/changes/bug32108
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2019-10-21 04:14:42 -0400
committerRoger Dingledine <arma@torproject.org>2019-10-21 04:14:42 -0400
commita7ccd9a997bc85c0e03926b7d24f7e05a4a51d39 (patch)
treec5b1116882e9c685501876836fcbcaade0b771ab /changes/bug32108
parente483257e1bc826b5678fcbf13084fd5d811f2b12 (diff)
downloadtor-a7ccd9a997bc85c0e03926b7d24f7e05a4a51d39.tar.gz
tor-a7ccd9a997bc85c0e03926b7d24f7e05a4a51d39.zip
respect accountingmax during soft hibernation
Relays now respect their AccountingMax bandwidth again. When relays entered "soft" hibernation (which typically starts when we've hit 90% of our AccountingMax), we had stopped checking whether we should enter hard hibernation. Soft hibernation refuses new connections and new circuits, but the existing circuits can continue, meaning that relays could have exceeded their configured AccountingMax. This commit rolls back some of the cpu-saving fixes, where we tried to avoid calling so many of our events while we're off the network. That's because PERIODIC_EVENT_FLAG_NEED_NET checks net_is_disabled(), which returns true even if we're only in soft hibernation. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
Diffstat (limited to 'changes/bug32108')
-rw-r--r--changes/bug321088
1 files changed, 8 insertions, 0 deletions
diff --git a/changes/bug32108 b/changes/bug32108
new file mode 100644
index 0000000000..2806fa3e5d
--- /dev/null
+++ b/changes/bug32108
@@ -0,0 +1,8 @@
+ o Major bugfixes (relay):
+ - Relays now respect their AccountingMax bandwidth again. When relays
+ entered "soft" hibernation (which typically starts when we've hit
+ 90% of our AccountingMax), we had stopped checking whether we should
+ enter hard hibernation. Soft hibernation refuses new connections and
+ new circuits, but the existing circuits can continue, meaning that
+ relays could have exceeded their configured AccountingMax. Fixes
+ bug 32108; bugfix on 0.4.0.1-alpha.