[or-cvs] Stop answering "end" with "end"

Nick Mathewson nickm at seul.org
Sat Feb 28 04:25:56 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv9682/src/or

Modified Files:
	connection_edge.c 
Log Message:
Stop answering "end" with "end"

Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- connection_edge.c	28 Feb 2004 04:11:52 -0000	1.97
+++ connection_edge.c	28 Feb 2004 04:25:54 -0000	1.98
@@ -308,7 +308,9 @@
         connection_mark_for_close(conn, END_STREAM_REASON_DONE);
       }
 #else
-      connection_mark_for_close(conn, END_STREAM_REASON_DONE);
+      /* We just *got* an end; no reason to send one. */
+      conn->has_sent_end = 1;
+      connection_mark_for_close(conn, 0);
 #endif
       return 0;
     case RELAY_COMMAND_EXTEND:



More information about the tor-commits mailing list