aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-18 13:22:42 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-18 13:22:42 -0400
commit985deaaaf7b7397857e02206e89392e0ee101077 (patch)
tree3cb2c1561f7c953023ee50a153411b942c5e6cec /src/or
parent0d75344b0e0eafc89db89a974e87b16564cd8f0a (diff)
downloadtor-985deaaaf7b7397857e02206e89392e0ee101077.tar
tor-985deaaaf7b7397857e02206e89392e0ee101077.tar.gz
Add a rate-limiter for the other circuitID exhaustion warning
Diffstat (limited to 'src/or')
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 1b3c5991b..7b852ff5c 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);