aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-03-29 02:32:00 +0000
committerNick Mathewson <nickm@torproject.org>2007-03-29 02:32:00 +0000
commit98ae4bbd0fba7dc6ef3e56ccbbafaf76175be227 (patch)
tree6856413522fd779fb1bca2204ae1ae186647141e /src
parentfdb1e11dae853a347348b0febc999371b168742d (diff)
downloadtor-98ae4bbd0fba7dc6ef3e56ccbbafaf76175be227.tar.gz
tor-98ae4bbd0fba7dc6ef3e56ccbbafaf76175be227.zip
Comment out the "clear queue when sending a destroy" logic: it seems potentially dangerous. (see comment for details)
svn:r9913
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_or.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index fb2cca71ad..7a3c6f2918 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -792,7 +792,6 @@ int
connection_or_send_destroy(uint16_t circ_id, or_connection_t *conn, int reason)
{
cell_t cell;
- circuit_t *circ;
tor_assert(conn);
@@ -802,10 +801,14 @@ connection_or_send_destroy(uint16_t circ_id, or_connection_t *conn, int reason)
cell.payload[0] = (uint8_t) reason;
log_debug(LD_OR,"Sending destroy (circID %d).", circ_id);
+#if 0
+ /* XXXX020 Actually, don't kill the cell queue: it may have data that we're
+ * waiting to flush. We need to do something more sensible here. */
/* Clear the cell queue on the circuit, so that our destroy cell will
* be the very next thing written.*/
circ = circuit_get_by_circid_orconn(circ_id, conn);
circuit_clear_cell_queue(circ, conn);
+#endif
connection_or_write_cell_to_buf(&cell, conn);
return 0;