mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Use exponential backoff for router descriptor downloads from consensuses
This commit is contained in:
parent
5cb27d8991
commit
6370c4ee87
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user