diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-08-31 12:52:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-08-31 12:52:11 -0400 |
commit | 285addbd943cbc9e96c0a268f4f45510270b4468 (patch) | |
tree | 0c9c8b606e9d13501fe29a96d7af97704e830123 /src/or/command.c | |
parent | ba9c1275c4b2325aed6a2fe2cc236794dab11052 (diff) | |
download | tor-285addbd943cbc9e96c0a268f4f45510270b4468.tar.gz tor-285addbd943cbc9e96c0a268f4f45510270b4468.zip |
Fix some issues in rate-limiting noticed by Sebastian
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/command.c b/src/or/command.c index ad8abfe5c9..ea0bbea1e5 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -288,7 +288,9 @@ command_process_create_cell(cell_t *cell, or_connection_t *conn) /* hand it off to the cpuworkers, and then return. */ if (assign_onionskin_to_cpuworker(NULL, circ, onionskin) < 0) { - static ratelim_t handoff_warning = RATELIM_INIT(3600); +#define WARN_HANDOFF_FAILURE_INTERVAL (6*60*60) + static ratelim_t handoff_warning = + RATELIM_INIT(WARN_HANDOFF_FAILURE_INTERVAL); char *m; if ((m = rate_limit_log(&handoff_warning, approx_time()))) { log_warn(LD_GENERAL,"Failed to hand off onionskin. Closing.%s",m); |