aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-02-28 04:25:54 +0000
committerNick Mathewson <nickm@torproject.org>2004-02-28 04:25:54 +0000
commitee68371f41def2fff7ef92f715c858bbe1b36c2f (patch)
treecfa4fe3a9b78439e8a7c008e72de7ad4c08065ad /src/or/connection_edge.c
parent4e89c6661aefc78417d0ac152a824c5ae4d9eb7d (diff)
downloadtor-ee68371f41def2fff7ef92f715c858bbe1b36c2f.tar
tor-ee68371f41def2fff7ef92f715c858bbe1b36c2f.tar.gz
Stop answering "end" with "end"
svn:r1150
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 3a8f81b1d..08cf97144 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: