]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Downgrade "Failed to hand off onionskin" messages
authorRoger Dingledine <arma@torproject.org>
Fri, 5 Oct 2012 17:35:13 +0000 (13:35 -0400)
committerRoger Dingledine <arma@torproject.org>
Fri, 5 Oct 2012 17:35:13 +0000 (13:35 -0400)
They're typically redundant with the "Your computer is too slow"
messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.

(In retrospect, we should have fixed this bug back in ticket 1042.)

changes/bug7038 [new file with mode: 0644]
src/or/command.c

diff --git a/changes/bug7038 b/changes/bug7038
new file mode 100644 (file)
index 0000000..3805d86
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (log messages):
+    - Downgrade "Failed to hand off onionskin" messages to "debug"
+      severity, since they're typically redundant with the "Your computer
+      is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
+
index a5ae2399f0ae951df6066df242b3963b29d99e2e..d04509b3ff510cc9d085546c850a6b5d85199bb6 100644 (file)
@@ -420,14 +420,7 @@ 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) {
-#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);
-        tor_free(m);
-      }
+      log_debug(LD_GENERAL,"Failed to hand off onionskin. Closing.");
       circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_RESOURCELIMIT);
       return;
     }