[tor-commits] [tor/master] Use exponential backoff for router descriptor downloads from consensuses
nickm at torproject.org
nickm at torproject.org
Thu Jun 23 13:08:14 UTC 2016
commit 6370c4ee87204bae264ff9c5a5cf5872958beda9
Author: Andrea Shepard <andrea at torproject.org>
Date: Sun Jun 12 21:27:22 2016 +0000
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 cefe607..a612a94 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);
}
}
More information about the tor-commits
mailing list