summaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-08-31 12:52:11 -0400
committerNick Mathewson <nickm@torproject.org>2010-08-31 12:52:11 -0400
commit285addbd943cbc9e96c0a268f4f45510270b4468 (patch)
tree0c9c8b606e9d13501fe29a96d7af97704e830123 /src/or/command.c
parentba9c1275c4b2325aed6a2fe2cc236794dab11052 (diff)
downloadtor-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.c4
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);