diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-20 17:54:48 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-20 17:54:48 +0000 |
commit | b27cb38dee3aa024e191a974bcf2801d4e87c0a5 (patch) | |
tree | a08aa6d0cd08cea79e981975cb9b75ed803cce87 /src/or/circuitlist.c | |
parent | 8e94097edb05b204cff7772588a3376507b3fd0b (diff) | |
download | tor-b27cb38dee3aa024e191a974bcf2801d4e87c0a5.tar.gz tor-b27cb38dee3aa024e191a974bcf2801d4e87c0a5.zip |
r9307@Kushana: nickm | 2006-10-20 13:53:54 -0400
Have connection_about_to_close use an end_reason field in edge_connection_t to tell what reason to tell the controller for closing the stream. Set end_reason in connection_edge_end, connection_mark_unattached_ap, and everwhere we set edge_has_sent_end. Add a changelog entry.
svn:r8779
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 8f7cb3e192..78fcbb3df9 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -909,6 +909,7 @@ _circuit_mark_for_close(circuit_t *circ, int reason, int line, * are closing because the circuit is getting torn down. No need * to send an end cell. */ conn->_base.edge_has_sent_end = 1; + conn->end_reason = END_STREAM_REASON_DESTROY; connection_mark_for_close(TO_CONN(conn)); } conn->on_circuit = NULL; |