diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-17 15:20:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-17 15:20:00 +0000 |
commit | b713b370bfdd2be8f1456d11f7e087c9cf7cdee7 (patch) | |
tree | 2f9e2c06a9f0a042f56b06a96f66456fde68d07b /src/or/command.c | |
parent | e3b1d059c7f17bf82cf9ac80a50642bb4db6dffe (diff) | |
download | tor-b713b370bfdd2be8f1456d11f7e087c9cf7cdee7.tar.gz tor-b713b370bfdd2be8f1456d11f7e087c9cf7cdee7.zip |
r9060@totoro: nickm | 2006-10-17 11:12:48 -0400
Apply patch from Mike Perry: add more reasons for circuit destroys. (Slightly tweaked to avoid allocating a number for an "internal" reason.)
svn:r8739
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/or/command.c b/src/or/command.c index 8a45ff46b5..ff10d35892 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -379,18 +379,12 @@ command_process_destroy_cell(cell_t *cell, or_connection_t *conn) circuit_set_n_circid_orconn(circ, 0, NULL); if (CIRCUIT_IS_ORIGIN(circ)) { /* Prevent arbitrary destroys from going unnoticed by controller */ - /* XXXX Not quite right; what we want is to tell the controller the - * exact reason that we were asked to close, but tell it that we - * closed because we were asked. Anything else is not accurate. - * OR_CONN_CLOSED is certainly wrong, since a destroy doesn't mean - * that the underlying OR connection got closed. -NM */ -#if 0 if (reason == END_CIRC_AT_ORIGIN || reason == END_CIRC_REASON_NONE || + reason == END_CIRC_REASON_FINISHED || reason == END_CIRC_REASON_REQUESTED) { - reason = END_CIRC_REASON_OR_CONN_CLOSED; + reason = END_CIRC_REASON_DESTROYED; } -#endif circuit_mark_for_close(circ, reason); } else { char payload[1]; |