aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2016-02-22 02:47:57 -0500
committerRoger Dingledine <arma@torproject.org>2016-02-22 02:47:57 -0500
commitc6952f65ef535b3b59dd07b947315e1ac1116c8e (patch)
tree9eb815e17fee758a959b89e9f3fe5b205bc16adc
parenta9993a92fba0e8632635f2423fc4cc30da130a53 (diff)
downloadtor-c6952f65ef535b3b59dd07b947315e1ac1116c8e.tar.gz
tor-c6952f65ef535b3b59dd07b947315e1ac1116c8e.zip
new microdescs mean progress towards bootstrapping
Now, when a user who has set EntryNodes finishes bootstrapping, Tor automatically repopulates the guard set based on this new directory information. Fixes bug 16825; bugfix on 0.2.3.1-alpha.
-rw-r--r--changes/bug168257
-rw-r--r--src/or/directory.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/changes/bug16825 b/changes/bug16825
new file mode 100644
index 0000000000..75c5627efd
--- /dev/null
+++ b/changes/bug16825
@@ -0,0 +1,7 @@
+ o Minor bugfixes:
+ - Count receipt of new microdescriptors as progress towards
+ bootstrapping. Now, when a user who has set EntryNodes finishes
+ bootstrapping, Tor automatically repopulates the guard set based
+ on this new directory information. Fixes bug 16825; bugfix on
+ 0.2.3.1-alpha.
+
diff --git a/src/or/directory.c b/src/or/directory.c
index ecf6da8ac1..b3af6f9c23 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2168,6 +2168,8 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
}
control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS,
count_loading_descriptors_progress());
+ if (mds && smartlist_len(mds))
+ directory_info_has_arrived(now, 0);
SMARTLIST_FOREACH(which, char *, cp, tor_free(cp));
smartlist_free(which);
smartlist_free(mds);