[tor-commits] [tor/master] Use exponential backoffs for certificate downloads

nickm at torproject.org nickm at torproject.org
Thu Jun 23 13:08:14 UTC 2016


commit 36d45a9f6448524d70e6fbe0fb16f61ef5b43c1f
Author: Andrea Shepard <andrea at torproject.org>
Date:   Sun Jun 12 21:13:09 2016 +0000

    Use exponential backoffs for certificate downloads
---
 src/or/routerlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 6721925..9cd5ef1 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -159,7 +159,7 @@ download_status_cert_init(download_status_t *dlstatus)
   dlstatus->schedule = DL_SCHED_CONSENSUS;
   dlstatus->want_authority = DL_WANT_ANY_DIRSERVER;
   dlstatus->increment_on = DL_SCHED_INCREMENT_FAILURE;
-  dlstatus->backoff = DL_SCHED_DETERMINISTIC;
+  dlstatus->backoff = DL_SCHED_RANDOM_EXPONENTIAL;
   dlstatus->last_backoff_position = 0;
   dlstatus->last_delay_used = 0;
 





More information about the tor-commits mailing list