commit 985deaaaf7b7397857e02206e89392e0ee101077 Author: Nick Mathewson nickm@torproject.org Date: Fri Apr 18 13:22:42 2014 -0400
Add a rate-limiter for the other circuitID exhaustion warning --- src/or/circuitbuild.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 1b3c599..7b852ff 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -596,7 +596,9 @@ circuit_deliver_create_cell(circuit_t *circ, const create_cell_t *create_cell,
id = get_unique_circ_id_by_chan(circ->n_chan); if (!id) { - log_warn(LD_CIRC,"failed to get unique circID."); + static ratelim_t circid_warning_limit = RATELIM_INIT(9600); + log_fn_ratelim(&circid_warning_limit, LOG_WARN, LD_CIRC, + "failed to get unique circID."); return -1; } log_debug(LD_CIRC,"Chosen circID %u.", (unsigned)id);
tor-commits@lists.torproject.org