aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-12 19:07:11 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-18 16:32:16 +0000
commit695b0bd1d5aca52a05df1a697a6b23a20be529d4 (patch)
tree75c40277318788676f0c9363a2ce182b3d76e98c /src/or/routerlist.c
parent033cf30b3cb505027c7542bb9b49717065a19fdf (diff)
downloadtor-695b0bd1d5aca52a05df1a697a6b23a20be529d4.tar.gz
tor-695b0bd1d5aca52a05df1a697a6b23a20be529d4.zip
Implement DL_SCHED_RANDOM_EXPONENTIAL support for download_status_t
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index aaa8fad178..6721925b12 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -159,6 +159,9 @@ 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->last_backoff_position = 0;
+ dlstatus->last_delay_used = 0;
/* Use the new schedule to set next_attempt_at */
download_status_reset(dlstatus);