summaryrefslogtreecommitdiff
path: root/src/or/relay.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-03-20 15:27:58 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-04-16 09:59:12 -0400
commitd064122e706575c99e8d2162de93f7f08cc8d41e (patch)
treea00dd4e9f23f079cd00e31218a1618af960d6de3 /src/or/relay.h
parent3d5bf12ac24bfbabad5f14c6cd45373b227d2816 (diff)
downloadtor-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/relay.h')
-rw-r--r--src/or/relay.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/relay.h b/src/or/relay.h
index f0fa7e9870..c9281c5eae 100644
--- a/src/or/relay.h
+++ b/src/or/relay.h
@@ -15,6 +15,7 @@
extern uint64_t stats_n_relay_cells_relayed;
extern uint64_t stats_n_relay_cells_delivered;
+void relay_consensus_has_changed(const networkstatus_t *ns);
int circuit_receive_relay_cell(cell_t *cell, circuit_t *circ,
cell_direction_t cell_direction);
size_t cell_queues_get_total_allocation(void);