diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-12 10:38:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-12 10:38:35 -0400 |
commit | 4027bd2e9680cb5922b006847aa4db6170826bf6 (patch) | |
tree | 7ad4f1a5405730d0cbb379163d801b2e66396966 /src/or/directory.c | |
parent | 8eef7fc845d76da287dd0888b6753178118f7193 (diff) | |
parent | 1b5e34badb06bb1a844a6e70164fc5c894d95d0a (diff) | |
download | tor-4027bd2e9680cb5922b006847aa4db6170826bf6.tar.gz tor-4027bd2e9680cb5922b006847aa4db6170826bf6.zip |
Merge branch 'bug23347_squashed'
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 007235d108..fed4277dec 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -5362,7 +5362,14 @@ find_dl_schedule(const download_status_t *dls, const or_options_t *options) } } case DL_SCHED_BRIDGE: - return options->TestingBridgeDownloadSchedule; + /* A bridge client downloading bridge descriptors */ + if (any_bridge_descriptors_known()) { + /* A bridge client with one or more running bridges */ + return options->TestingBridgeDownloadSchedule; + } else { + /* A bridge client with no running bridges */ + return options->TestingBridgeBootstrapDownloadSchedule; + } default: tor_assert(0); } @@ -5683,8 +5690,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) { |