diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-02-22 03:02:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-02-22 03:02:33 +0000 |
commit | c2d5b67dd2ba6b142db5b9c9aadaadd365b1404e (patch) | |
tree | e011d47e046d1da0f5a39db7dfced9cfc4182dd0 | |
parent | e673536e3f82c90082c45a85122075ba8ae9e62d (diff) | |
download | tor-c2d5b67dd2ba6b142db5b9c9aadaadd365b1404e.tar tor-c2d5b67dd2ba6b142db5b9c9aadaadd365b1404e.tar.gz |
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
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index f23bfe64a..bad34746c 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)) { |