summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-08-29 14:04:24 +1000
committerNick Mathewson <nickm@torproject.org>2017-09-12 10:38:25 -0400
commit97249c4f5e389141cb4ff3562a3813bd09bff6ad (patch)
treefea0d8ade7b106af53d5a389b56ce9867b7083da /src/or/directory.c
parent435952538da2d99e7ce46f510ac3f7dc3f910fca (diff)
downloadtor-97249c4f5e389141cb4ff3562a3813bd09bff6ad.tar.gz
tor-97249c4f5e389141cb4ff3562a3813bd09bff6ad.zip
Make bridge clients download bridge descriptors immediately
The download schedule tells Tor to wait 15 minutes before downloading bridge descriptors. But 17750 made Tor ignore that and start immediately. Since we fixed 17750, Tor waits 15 minutes for bridge client bootstrap, like the schedule says. This fixes the download schedule to start immediately, and to try each bridge 3 times in the first 30 seconds. This should make bridge bootstraps more reliable. Fixes 23347.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 57dfdd9cac..6b5e16bfd4 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -5663,8 +5663,8 @@ download_status_get_initial_delay_from_now(const download_status_t *dls)
* (We find the zeroth element of the download schedule, and set
* next_attempt_at to be the appropriate offset from 'now'. In most
* cases this means setting it to 'now', so the item will be immediately
- * downloadable; in the case of bridge descriptors, the zeroth element
- * is an hour from now.) */
+ * downloadable; when using authorities with fallbacks, there is a few seconds'
+ * delay.) */
void
download_status_reset(download_status_t *dls)
{