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/control.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/control.c')
-rw-r--r-- | src/or/control.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c index 6fd88c4ed3..c1e3ab5f94 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -2101,6 +2101,7 @@ handle_control_attachstream(control_connection_t *conn, uint32_t len, ap_conn->cpath_layer); /* Un-mark it as ending, since we're going to reuse it. */ ap_conn->_base.edge_has_sent_end = 0; + ap_conn->end_reason = 0; if (tmpcirc) circuit_detach_stream(tmpcirc,ap_conn); ap_conn->_base.state = AP_CONN_STATE_CONTROLLER_WAIT; |