Bootstrap: check the exit policy and flag on descriptors

Previously, Tor would only check the exit flag. In small networks, Tor
could bootstrap once it received a consensus with exits, without fetching
the new descriptors for those exits.

After bootstrap, Tor delays descriptor fetches, leading to failures in
fast networks like chutney.

Fixes 27236; bugfix on 0.2.6.3-alpha.
This commit is contained in:
teor
2018-08-24 00:10:52 +10:00
parent 573b6e4f2f
commit fadcab920b
2 changed files with 46 additions and 39 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor bugfixes (testing, bootstrap):
- When calculating bootstrap progress, check exit policies and the exit
flag. Previously, Tor would only check the exit flag, which caused
race conditions in small and fast networks like chutney.
Fixes bug 27236; bugfix on 0.2.6.3-alpha.