mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Document the consensus download interval used by hidden services
In the comments in update_consensus_networkstatus_fetch_time_impl in networkstatus.c
This commit is contained in:
parent
4079d2e0a5
commit
8092ae0c4e
@ -856,8 +856,8 @@ update_consensus_networkstatus_fetch_time_impl(time_t now, int flav)
|
||||
dl_interval = interval/2;
|
||||
}
|
||||
} else {
|
||||
/* We're an ordinary client or a bridge. Give all the caches enough
|
||||
* time to download the consensus. */
|
||||
/* We're an ordinary client, a bridge, or a hidden service.
|
||||
* Give all the caches enough time to download the consensus. */
|
||||
start = (time_t)(c->fresh_until + (interval*3)/4);
|
||||
/* But download the next one well before this one is expired. */
|
||||
dl_interval = ((c->valid_until - start) * 7 )/ 8;
|
||||
|
Loading…
Reference in New Issue
Block a user