aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-08-19 22:23:11 +0300
committerNick Mathewson <nickm@torproject.org>2014-08-20 15:29:56 -0400
commitc731a1c68f47812f0bc536a8fab548c3c734ce28 (patch)
tree5f90ce992e6d6b4dccde51b364d95356d7156c52 /src/or/entrynodes.c
parent197d8550094d0509bed9e682b4a7b723dd948141 (diff)
downloadtor-c731a1c68f47812f0bc536a8fab548c3c734ce28.tar.gz
tor-c731a1c68f47812f0bc536a8fab548c3c734ce28.zip
Write comments for members of periods array.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r--src/or/entrynodes.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index b9a0bf4a99..ee4f447ee8 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -165,10 +165,12 @@ entry_is_time_to_retry(const entry_guard_t *e, time_t now)
};
struct guard_retry_period_s periods[] = {
- { 6*60*60, 60*60 },
- { 3*24*60*60, 4*60*60 },
- { 7*24*60*60, 18*60*60 },
- { TIME_MAX, 36*60*60 }
+ { 6*60*60, 60*60 }, /* For first 6 hrs., retry hourly; */
+ { 3*24*60*60, 4*60*60 }, /* Then retry every 4 hrs. until the
+ 3-day mark; */
+ { 7*24*60*60, 18*60*60 }, /* After 3 days, retry every 18 hours until
+ 1 week mark. */
+ { TIME_MAX, 36*60*60 } /* After 1 week, retry every 36 hours. */
};
time_t ith_deadline_for_retry;