diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-06-12 21:27:22 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-06-18 16:32:17 +0000 |
commit | 6370c4ee87204bae264ff9c5a5cf5872958beda9 (patch) | |
tree | b328ac01408c0352628761d760e11647e6642850 /src/or | |
parent | 5cb27d8991620af2b09c5cefaeed7b8b871c4aae (diff) | |
download | tor-6370c4ee87204bae264ff9c5a5cf5872958beda9.tar.gz tor-6370c4ee87204bae264ff9c5a5cf5872958beda9.zip |
Use exponential backoff for router descriptor downloads from consensuses
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index cefe607fc6..a612a94223 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -3204,6 +3204,8 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out, NULL, NULL, ns->consensus_method, flav))) + /* Use exponential-backoff scheduling when downloading microdescs */ + rs->dl_status.backoff = DL_SCHED_RANDOM_EXPONENTIAL; smartlist_add(ns->routerstatus_list, rs); } } |