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/connection_or.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/connection_or.h')
-rw-r--r-- | src/or/connection_or.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_or.h b/src/or/connection_or.h index da95718ac9..b35bcddca6 100644 --- a/src/or/connection_or.h +++ b/src/or/connection_or.h @@ -19,7 +19,6 @@ or_connection_t *connection_or_get_for_extend(const char *digest, const tor_addr_t *target_addr, const char **msg_out, int *launch_out); -void connection_or_set_bad_connections(const char *digest, int force); void connection_or_block_renegotiation(or_connection_t *conn); int connection_or_reached_eof(or_connection_t *conn); @@ -111,5 +110,7 @@ void var_cell_free(var_cell_t *cell); /* DOCDOC */ #define MIN_LINK_PROTO_FOR_WIDE_CIRC_IDS 4 +void connection_or_group_set_badness_(smartlist_t *group, int force); + #endif |