aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2014-03-10 22:52:07 +0000
committerGeorge Kadianakis <desnacked@riseup.net>2014-03-10 22:52:07 +0000
commit1c475eb018989f090c1423c25dc2f09380b10693 (patch)
tree07a71f4cc5aad46333bfdaf5b851204f231b9b78 /src/or/entrynodes.c
parent0b7a66fac76445087651a1dd2d171bf043c9f345 (diff)
downloadtor-1c475eb018989f090c1423c25dc2f09380b10693.tar
tor-1c475eb018989f090c1423c25dc2f09380b10693.tar.gz
Throw control port warning if we failed to connect to all our bridges.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r--src/or/entrynodes.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index d463303fc..17c5b13e7 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -2213,27 +2213,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