aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2015-06-16 03:11:09 +1000
committerteor <teor2345@gmail.com>2015-06-16 03:11:09 +1000
commit8092ae0c4ecc05d2bc058531be976e374febd9cb (patch)
treed38b3a4329bd9490dc3cf8274b56504fcc2ff02d /src
parent4079d2e0a5d3b8abed541d473485f22ae8746636 (diff)
downloadtor-8092ae0c4ecc05d2bc058531be976e374febd9cb.tar.gz
tor-8092ae0c4ecc05d2bc058531be976e374febd9cb.zip
Document the consensus download interval used by hidden services
In the comments in update_consensus_networkstatus_fetch_time_impl in networkstatus.c
Diffstat (limited to 'src')
-rw-r--r--src/or/networkstatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index da110fdff6..9de1f88aaf 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -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;