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
This commit is contained in:
Nick Mathewson
2004-02-28 04:11:53 +00:00
parent 88e222ff76
commit 4e89c6661a
8 changed files with 66 additions and 38 deletions
+2 -1
View File
@@ -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) {