diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-07-30 18:55:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-07-30 18:55:24 -0400 |
commit | 6f45101327592333dcc54e08800fbc2cb68ccd49 (patch) | |
tree | 6ed550c89289a454c4436fc9facec1d7de206b8d /src/or/relay.h | |
parent | 15424bf800a56007d802db3a9d3fe40fbdf2bee5 (diff) | |
download | tor-6f45101327592333dcc54e08800fbc2cb68ccd49.tar.gz tor-6f45101327592333dcc54e08800fbc2cb68ccd49.zip |
Clear cell queues when marking or truncating a circuit.
At best, this patch helps us avoid sending queued relayed cells that
would get ignored during the time between when a destroy cell is
sent and when the circuit is finally freed. At worst, it lets us
release some memory a little earlier than it would otherwise.
Fix for bug #1184. Bugfix on 0.2.0.1-alpha.
Diffstat (limited to 'src/or/relay.h')
-rw-r--r-- | src/or/relay.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/relay.h b/src/or/relay.h index 73855a52bf..7fb0655ef7 100644 --- a/src/or/relay.h +++ b/src/or/relay.h @@ -60,6 +60,7 @@ const char *decode_address_from_payload(tor_addr_t *addr_out, unsigned cell_ewma_get_tick(void); void cell_ewma_set_scale_factor(or_options_t *options, networkstatus_t *consensus); +void circuit_clear_cell_queue(circuit_t *circ, or_connection_t *orconn); #endif |