aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-06-07 05:27:34 +0000
committerRoger Dingledine <arma@torproject.org>2008-06-07 05:27:34 +0000
commit5aeb89447ef1683477f2ac22c91cba5f6444557d (patch)
tree27dc2a94cd2b6d3e63f9a1049d3d78af7953128e /src/or/routerlist.c
parent9b626988a67647a60a420d81a95a889ea31ac666 (diff)
downloadtor-5aeb89447ef1683477f2ac22c91cba5f6444557d.tar
tor-5aeb89447ef1683477f2ac22c91cba5f6444557d.tar.gz
infrastructure for the 'bootstrap status event' feature, so we can
tell the controller how we're doing at bootstrapping, and it can tell the user. svn:r15008
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 5bd00f7b3..f00e36712 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4217,6 +4217,7 @@ update_router_have_minimum_dir_info(void)
tor_snprintf(dir_info_status, sizeof(dir_info_status),
"We have only %d/%d usable descriptors.", num_present, num_usable);
res = 0;
+ control_event_bootstrap(BOOTSTRAP_STATUS_REQUESTING_DESCRIPTORS, 0);
} else if (num_present < 2) {
tor_snprintf(dir_info_status, sizeof(dir_info_status),
"Only %d descriptor%s here and believed reachable!",
@@ -4231,6 +4232,7 @@ update_router_have_minimum_dir_info(void)
log(LOG_NOTICE, LD_DIR,
"We now have enough directory information to build circuits.");
control_event_client_status(LOG_NOTICE, "ENOUGH_DIR_INFO");
+ control_event_bootstrap(BOOTSTRAP_STATUS_CONN_OR, 0);
}
if (!res && have_min_dir_info) {
log(LOG_NOTICE, LD_DIR,"Our directory information is no longer up-to-date "