diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-07 06:54:22 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-07 06:54:22 +0000 |
commit | 026c11c42e30258d273f6ecc41ae1634981b84b3 (patch) | |
tree | bebae1ca59a55cabe46291b0db9e3c2fcb65d612 /src/or/circuitlist.c | |
parent | e7f558bd27778ed7c499220af4db57b808717403 (diff) | |
download | tor-026c11c42e30258d273f6ecc41ae1634981b84b3.tar.gz tor-026c11c42e30258d273f6ecc41ae1634981b84b3.zip |
r11672@catbus: nickm | 2007-02-06 14:16:56 -0500
Fix third case of bug 367: make circuit get sent along with END_STREAM_REASON_DESTROY stream CLOSED events.
svn:r9510
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index acbea47487..93784a485d 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -953,6 +953,9 @@ _circuit_mark_for_close(circuit_t *circ, int reason, int line, * to send an end cell. */ conn->_base.edge_has_sent_end = 1; conn->end_reason = END_STREAM_REASON_DESTROY; + conn->end_reason |= END_STREAM_REASON_FLAG_ALREADY_SENT_CLOSED; + control_event_stream_status(conn, STREAM_EVENT_CLOSED, + END_STREAM_REASON_DESTROY); connection_mark_for_close(TO_CONN(conn)); } conn->on_circuit = NULL; |