aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-22 01:45:57 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-22 01:45:57 -0400
commit31f22505a6ddc802c00ffbcb0563bc3ddcc7092a (patch)
tree871d7ea00fa1b12911f429232ea30cddfb147a32 /src/or/routerlist.c
parent4ef9ccc88375b2dc5e421f2bf974b098ea9249a5 (diff)
parentfe42f10954bcc6a5f4529e544403432140a4acae (diff)
downloadtor-31f22505a6ddc802c00ffbcb0563bc3ddcc7092a.tar.gz
tor-31f22505a6ddc802c00ffbcb0563bc3ddcc7092a.zip
Merge remote branch 'arma/bug1362'
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index f88a99e046..ca5ec3e72f 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4805,6 +4805,13 @@ update_router_have_minimum_dir_info(void)
log(quiet ? LOG_INFO : LOG_NOTICE, LD_DIR,
"Our directory information is no longer up-to-date "
"enough to build circuits: %s", dir_info_status);
+
+ /* a) make us log when we next complete a circuit, so we know when Tor
+ * is back up and usable, and b) disable some activities that Tor
+ * should only do while circuits are working, like reachability tests
+ * and fetching bridge descriptors only over circuits. */
+ has_completed_circuit = 0;
+
control_event_client_status(LOG_NOTICE, "NOT_ENOUGH_DIR_INFO");
}
have_min_dir_info = res;