mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 07:31:33 +01:00
Bug 30173: Rate limit padding rate limit log message.
Gotta limit to the limit when the limit is reached.
This commit is contained in:
parent
21a4438c58
commit
17a164a827
1 changed files with 2 additions and 1 deletions
|
@ -1196,7 +1196,8 @@ circpad_machine_schedule_padding,(circpad_machine_runtime_t *mi))
|
|||
"Padding machine has reached padding limit on circuit %u",
|
||||
TO_ORIGIN_CIRCUIT(mi->on_circ)->global_identifier);
|
||||
} else {
|
||||
log_fn(LOG_INFO, LD_CIRC,
|
||||
static ratelim_t padding_lim = RATELIM_INIT(600);
|
||||
log_fn_ratelim(&padding_lim,LOG_INFO,LD_CIRC,
|
||||
"Padding machine has reached padding limit on circuit %"PRIu64
|
||||
", %d",
|
||||
mi->on_circ->n_chan ? mi->on_circ->n_chan->global_identifier : 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue