Use exponential backoff for router descriptor downloads from consensuses

This commit is contained in:
Andrea Shepard 2016-06-12 21:27:22 +00:00
parent 5cb27d8991
commit 6370c4ee87

View File

@ -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);
}
}