Make sure bridges are definitely running before delaying directory fetches
commit19a4abf2a99c6a3de2c9a2fdf3e6d7b7c404f8f8
authorteor <teor2345@gmail.com>
Sun, 10 Dec 2017 15:29:05 +0000 (11 02:29 +1100)
committerNick Mathewson <nickm@torproject.org>
Wed, 13 Dec 2017 00:17:25 +0000 (12 19:17 -0500)
tree48e37c5c8b39c91a4ee509b677d93a39822d1a2e
parent6b5c70670b26b9560febf5dc70f814d5e515c0f8
Make sure bridges are definitely running before delaying directory fetches

Retry directory downloads when we get our first bridge descriptor
during bootstrap or while reconnecting to the network. Keep retrying
every time we get a bridge descriptor, until we have a reachable bridge.

Stop delaying bridge descriptor fetches when we have cached bridge
descriptors. Instead, only delay bridge descriptor fetches when we
have at least one reachable bridge.

Fixes bug 24367; bugfix on 0.2.0.3-alpha.
changes/bug24367
src/or/bridges.c
src/or/directory.c
src/or/entrynodes.c
src/or/entrynodes.h
src/or/networkstatus.c
src/test/test_dir.c