From 6f45101327592333dcc54e08800fbc2cb68ccd49 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 30 Jul 2010 18:55:24 -0400 Subject: 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. --- src/or/relay.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/relay.h') diff --git a/src/or/relay.h b/src/or/relay.h index 73855a52b..7fb0655ef 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 -- cgit v1.2.3