[or-cvs] After we successfully connect, try handling pending stuff i...

Nick Mathewson nickm at seul.org
Tue Feb 22 03:02:36 UTC 2005


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)) {



More information about the tor-commits mailing list