diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-02-28 04:11:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-02-28 04:11:53 +0000 |
commit | 4e89c6661aefc78417d0ac152a824c5ae4d9eb7d (patch) | |
tree | 1eb95d0deb15c9f05db49c3eca45047c789d4c6e /src/or/cpuworker.c | |
parent | 88e222ff76e3643b20589dde8f0002ce8c559dc0 (diff) | |
download | tor-4e89c6661aefc78417d0ac152a824c5ae4d9eb7d.tar tor-4e89c6661aefc78417d0ac152a824c5ae4d9eb7d.tar.gz |
Push responsibility for connection marking down as far as possible; have only a close path; add some missing end cells; change return conventions a little.
svn:r1149
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 0ff097f13..98dd388ba 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -68,7 +68,8 @@ int connection_cpu_process_inbuf(connection_t *conn) { } num_cpuworkers--; spawn_enough_cpuworkers(); /* try to regrow. hope we don't end up spinning. */ - return -1; + connection_mark_for_close(conn,0); + return 0; } if(conn->state == CPUWORKER_STATE_BUSY_ONION) { |