[or-cvs] Let AP edges receive "end" relay cells while waiting for "c...

Roger Dingledine arma at seul.org
Tue Jan 20 18:17:45 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	connection_edge.c 
Log Message:
Let AP edges receive 'end' relay cells while waiting for 'connected'


Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- connection_edge.c	20 Jan 2004 09:21:46 -0000	1.88
+++ connection_edge.c	20 Jan 2004 18:17:43 -0000	1.89
@@ -203,7 +203,7 @@
    * conn points to the recognized stream. */
 
   if(conn && conn->state != AP_CONN_STATE_OPEN && conn->state != EXIT_CONN_STATE_OPEN) {
-    if(conn->type == CONN_TYPE_EXIT && rh.command == RELAY_COMMAND_END) {
+    if(rh.command == RELAY_COMMAND_END) {
       log_fn(LOG_INFO,"Exit got end (%s) before we're connected. Marking for close.",
         connection_edge_end_reason(cell->payload+RELAY_HEADER_SIZE, rh.length));
       if(conn->state == EXIT_CONN_STATE_RESOLVING) {



More information about the tor-commits mailing list