[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] start sending "truncated" cells back rather than destroy ce...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] start sending "truncated" cells back rather than destroy ce...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Sun,  3 Apr 2005 00:25:28 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 03 Apr 2005 00:26:01 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
	command.c 
Log Message:
start sending 'truncated' cells back rather than destroy cells,
if the circuit closes in front of you.
Index: command.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/command.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- command.c	1 Apr 2005 20:15:55 -0000	1.82
+++ command.c	3 Apr 2005 05:25:26 -0000	1.83
@@ -309,14 +309,13 @@
     circuit_mark_for_close(circ);
   } else { /* the destroy came from ahead */
     circ->n_conn = NULL;
-#if 0
-    if (!CIRCUIT_IS_ORIGIN(circ)) {
+    if (CIRCUIT_IS_ORIGIN(circ)) {
+      circuit_mark_for_close(circ);
+    } else {
       log_fn(LOG_DEBUG, "Delivering 'truncated' back.");
       connection_edge_send_command(NULL, circ, RELAY_COMMAND_TRUNCATED,
                                    NULL, 0, NULL);
     }
-#endif
-    circuit_mark_for_close(circ);
   }
 }