From ee68371f41def2fff7ef92f715c858bbe1b36c2f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 28 Feb 2004 04:25:54 +0000 Subject: [PATCH] Stop answering "end" with "end" svn:r1150 --- src/or/connection_edge.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 3a8f81b1db..08cf97144a 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -308,7 +308,9 @@ int connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, connection 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: