]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Write comments for members of periods array.
authorrl1987 <rl1987@sdf.lonestar.org>
Tue, 19 Aug 2014 19:23:11 +0000 (22:23 +0300)
committerNick Mathewson <nickm@torproject.org>
Wed, 20 Aug 2014 19:29:56 +0000 (15:29 -0400)
src/or/entrynodes.c

index b9a0bf4a998dfb8b7403d7c8cf78856cf02db31d..ee4f447ee804781304f9c9fbd2cc05da49a8cedb 100644 (file)
@@ -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;