[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[or-cvs] another bugfix on the proxy side
Update of /home/or/cvsroot/src/or
In directory moria.seul.org:/home/arma/work/onion/cvs/src/or
Modified Files:
connection_ap.c
Log Message:
another bugfix on the proxy side
should be more reliable now (?)
Index: connection_ap.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_ap.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- connection_ap.c 24 Sep 2002 10:43:56 -0000 1.15
+++ connection_ap.c 26 Sep 2002 05:50:51 -0000 1.16
@@ -200,6 +200,9 @@
return -1;
}
+ conn->state = AP_CONN_STATE_OR_WAIT;
+ connection_stop_reading(conn); /* Stop listening for input from the AP! */
+
if(!n_conn) { /* launch the connection */
n_conn = connect_to_router_as_op(firsthop);
if(!n_conn) { /* connect failed, forget the whole thing */
@@ -208,8 +211,7 @@
return -1;
}
}
- conn->state = AP_CONN_STATE_OR_WAIT;
- connection_stop_reading(conn); /* Stop listening for input from the AP! */
+
return 0; /* return success. The onion/circuit/etc will be taken care of automatically
* (may already have been) whenever n_conn reaches OR_CONN_STATE_OPEN.
*/