From 8f3e3279c198dd13c11ffd739ddf08dbe8b07762 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 10 Jun 2014 13:35:45 -0400 Subject: Try to diagnose bug 12184 Check for consistency between the queued destroy cells and the marked circuit IDs. Check for consistency in the count of queued destroy cells in several ways. Check to see whether any of the marked circuit IDs have somehow been marked longer than the channel has existed. --- src/or/circuitmux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/or/circuitmux.h') diff --git a/src/or/circuitmux.h b/src/or/circuitmux.h index c4c0649c6c..2b5fb7e51e 100644 --- a/src/or/circuitmux.h +++ b/src/or/circuitmux.h @@ -121,6 +121,10 @@ unsigned int circuitmux_num_cells(circuitmux_t *cmux); unsigned int circuitmux_num_circuits(circuitmux_t *cmux); unsigned int circuitmux_num_active_circuits(circuitmux_t *cmux); +/* Debuging interface - slow. */ +int64_t circuitmux_count_queued_destroy_cells(const channel_t *chan, + const circuitmux_t *cmux); + /* Channel interface */ circuit_t * circuitmux_get_first_active_circuit(circuitmux_t *cmux, cell_queue_t **destroy_queue_out); -- cgit v1.2.3-54-g00ecf