[or-cvs] If it has not been 100 seconds since we told the cpuworker ...

Nick Mathewson nickm at seul.org
Fri Apr 8 04:59:37 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv22101/src/or

Modified Files:
	cpuworker.c 
Log Message:
If it has not been 100 seconds since we told the cpuworker about an onion, complain!  Oh, wait...

Index: cpuworker.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/cpuworker.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- cpuworker.c	7 Apr 2005 20:07:34 -0000	1.74
+++ cpuworker.c	8 Apr 2005 04:59:34 -0000	1.75
@@ -375,7 +375,7 @@
     if (!conn->marked_for_close &&
         conn->type == CONN_TYPE_CPUWORKER &&
         conn->state == CPUWORKER_STATE_BUSY_ONION &&
-        conn->timestamp_lastwritten + CPUWORKER_BUSY_TIMEOUT > now) {
+        conn->timestamp_lastwritten + CPUWORKER_BUSY_TIMEOUT < now) {
       log_fn(LOG_NOTICE,"Bug: closing wedged cpuworker. Can somebody find the bug?");
       num_cpuworkers_busy--;
       num_cpuworkers--;



More information about the tor-commits mailing list