[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Use exponential backoff for router descriptor downloads from consensuses
commit 6370c4ee87204bae264ff9c5a5cf5872958beda9
Author: Andrea Shepard <andrea@xxxxxxxxxxxxxx>
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);
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits