From 6370c4ee87204bae264ff9c5a5cf5872958beda9 Mon Sep 17 00:00:00 2001 From: Andrea Shepard Date: Sun, 12 Jun 2016 21:27:22 +0000 Subject: [PATCH] Use exponential backoff for router descriptor downloads from consensuses --- src/or/routerparse.c | 2 ++ 1 file changed, 2 insertions(+) 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); } }