From: Nick Mathewson Date: Tue, 22 Feb 2005 03:02:33 +0000 (+0000) Subject: After we successfully connect, try handling pending stuff immediately, rather than... X-Git-Tag: tor-0.1.0.1-rc~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d5b67dd2ba6b142db5b9c9aadaadd365b1404e;p=thirdparty%2Ftor.git After we successfully connect, try handling pending stuff immediately, rather than waiting for the next call to connection_handle_write. Roger: is this right? svn:r3647 --- diff --git a/src/or/connection.c b/src/or/connection.c index f23bfe64a8..bad34746c2 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1088,7 +1088,8 @@ int connection_handle_write(connection_t *conn) { } } /* The connection is successful. */ - return connection_finished_connecting(conn); + if (connection_finished_connecting(conn)<0) + return -1; } if (connection_speaks_cells(conn)) {