diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-11 11:04:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-11 11:04:47 -0400 |
commit | cce06b649edc51c67bba00c23d0b2b27ad2b892f (patch) | |
tree | ccce2a9a4d85da3bbd895c1e3ce2b30cccb44520 /src/or/entrynodes.c | |
parent | b8ceb464e5949b07ba9bd007002a49f3ab9c600b (diff) | |
parent | 1c475eb018989f090c1423c25dc2f09380b10693 (diff) | |
download | tor-cce06b649edc51c67bba00c23d0b2b27ad2b892f.tar.gz tor-cce06b649edc51c67bba00c23d0b2b27ad2b892f.zip |
Merge remote-tracking branch 'asn/bug11069_take2'
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 37d5fb9749..b374ac7a34 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -2207,27 +2207,6 @@ any_bridge_descriptors_known(void) return choose_random_entry(NULL) != NULL; } -/** Return 1 if there are any directory conns fetching bridge descriptors - * that aren't marked for close. We use this to guess if we should tell - * the controller that we have a problem. */ -int -any_pending_bridge_descriptor_fetches(void) -{ - smartlist_t *conns = get_connection_array(); - SMARTLIST_FOREACH_BEGIN(conns, connection_t *, conn) { - if (conn->type == CONN_TYPE_DIR && - conn->purpose == DIR_PURPOSE_FETCH_SERVERDESC && - TO_DIR_CONN(conn)->router_purpose == ROUTER_PURPOSE_BRIDGE && - !conn->marked_for_close && - conn->linked && - conn->linked_conn && !conn->linked_conn->marked_for_close) { - log_debug(LD_DIR, "found one: %s", conn->address); - return 1; - } - } SMARTLIST_FOREACH_END(conn); - return 0; -} - /** Return 1 if we have at least one descriptor for an entry guard * (bridge or member of EntryNodes) and all descriptors we know are * down. Else return 0. If <b>act</b> is 1, then mark the down guards |