[or-cvs] and another one

Roger Dingledine arma at seul.org
Fri Feb 27 23:30:29 UTC 2004


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

Modified Files:
	connection.c 
Log Message:
and another one


Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- connection.c	27 Feb 2004 23:23:33 -0000	1.155
+++ connection.c	27 Feb 2004 23:30:27 -0000	1.156
@@ -737,6 +737,10 @@
   if(!connection_speaks_cells(conn)) {
      log_fn(LOG_INFO,"CircID %d: At an edge. Marking connection for close.",
             circ_id);
+     conn->has_sent_end = 1; /* we're closing the circuit, nothing to send to */
+/* XXX really, we should separate this function into two functions.
+ * one of them actually sends the destroy cell, as this function's name
+ * implies, and another one destroys a stream. Yes/no? -RD */
      connection_mark_for_close(conn, END_STREAM_REASON_DESTROY);
      return 0;
   }



More information about the tor-commits mailing list