diff options
author | Roger Dingledine <arma@torproject.org> | 2010-09-21 02:16:43 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2010-09-21 02:16:43 -0400 |
commit | fe42f10954bcc6a5f4529e544403432140a4acae (patch) | |
tree | 68084cd3441da197cd081d0cca73b3a334c36139 /src/or | |
parent | fb34c66e83790bf03b163555128565823a3e58fe (diff) | |
download | tor-fe42f10954bcc6a5f4529e544403432140a4acae.tar.gz tor-fe42f10954bcc6a5f4529e544403432140a4acae.zip |
log when we finish a circuit after being offline
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/routerlist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index b77107ca0b..f4c1660629 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -4783,6 +4783,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; |