[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] After we successfully connect, try handling pending stuff i...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] After we successfully connect, try handling pending stuff i...
- From: nickm@xxxxxxxx (Nick Mathewson)
- Date: Mon, 21 Feb 2005 22:02:36 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 21 Feb 2005 22:02:54 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv13277/src/or
Modified Files:
connection.c
Log Message:
After we successfully connect, try handling pending stuff immediately, rather than waiting for the next call to connection_handle_write. Roger: is this right?
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.326
retrieving revision 1.327
diff -u -d -r1.326 -r1.327
--- connection.c 17 Feb 2005 01:12:50 -0000 1.326
+++ connection.c 22 Feb 2005 03:02:33 -0000 1.327
@@ -1088,7 +1088,8 @@
}
}
/* The connection is successful. */
- return connection_finished_connecting(conn);
+ if (connection_finished_connecting(conn)<0)
+ return -1;
}
if (connection_speaks_cells(conn)) {