diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-19 16:14:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-08 16:47:57 -0500 |
commit | a20c8a81d717852ad3a2bf261ec68efba692f0d7 (patch) | |
tree | 32fd49d285aa8b1ac794dcebe84b41a800fd524c /src/or/channel.h | |
parent | bfff729728e04d404533be7b86426833ca8d4a32 (diff) | |
download | tor-a20c8a81d717852ad3a2bf261ec68efba692f0d7.tar.gz tor-a20c8a81d717852ad3a2bf261ec68efba692f0d7.zip |
Migrate main data loop for set_bad_connections to use channel structures
This was the last user of our or_connections-by-ID map. It also had
a tendency to be O(N) in cases that only had to be O(1).
Diffstat (limited to 'src/or/channel.h')
-rw-r--r-- | src/or/channel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/channel.h b/src/or/channel.h index 39a4d05fba..3f0bb37af5 100644 --- a/src/or/channel.h +++ b/src/or/channel.h @@ -601,6 +601,8 @@ void channel_listener_dump_statistics(channel_listener_t *chan_l, void channel_listener_dump_transport_statistics(channel_listener_t *chan_l, int severity); +void channel_update_bad_for_new_circs(const char *digest, int force); + /* Flow control queries */ uint64_t channel_get_global_queue_estimate(void); int channel_num_cells_writeable(channel_t *chan); |