diff options
author | David Goulet <dgoulet@torproject.org> | 2018-03-20 15:27:58 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-04-16 09:59:12 -0400 |
commit | d064122e706575c99e8d2162de93f7f08cc8d41e (patch) | |
tree | a00dd4e9f23f079cd00e31218a1618af960d6de3 /src/or/networkstatus.c | |
parent | 3d5bf12ac24bfbabad5f14c6cd45373b227d2816 (diff) | |
download | tor-d064122e706575c99e8d2162de93f7f08cc8d41e.tar.gz tor-d064122e706575c99e8d2162de93f7f08cc8d41e.zip |
relay: Implement a circuit cell queue maximum size
This commit introduces the consensus parameter "circ_max_cell_queue_size"
which controls the maximum number of cells a circuit queue should have.
The default value is currently 50000 cells which is above what should be
expected but keeps us a margin of error for padding cells.
Related to this is #9072. Back in 0.2.4.14-alpha, we've removed that limit due
to a Guard discovery attack. Ticket #25226 details why we are putting back the
limit due to the memory pressure issue on relays.
Fixes #25226
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 7777473f11..1f21e8adb8 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -1596,6 +1596,7 @@ notify_before_networkstatus_changes(const networkstatus_t *old_c, { notify_control_networkstatus_changed(old_c, new_c); dos_consensus_has_changed(new_c); + relay_consensus_has_changed(new_c); } /* Called after a new consensus has been put in the global state. It is safe |