[or-cvs] [tor/master] the first piece of bug 969 fixing

Nick Mathewson nickm at seul.org
Tue Jun 30 14:14:56 UTC 2009


Author: Roger Dingledine <arma at torproject.org>
Date: Sat, 20 Jun 2009 01:37:09 -0400
Subject: the first piece of bug 969 fixing
Commit: 0cd16c4ad3aee87c385d62f9af7af64a7a99335c

tell the rephist module that a given relay is down whenever
we determine that it's down, not just when we thought it used
to be up.
---
 src/or/dirserv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 88afe9f..55c3302 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -951,8 +951,8 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
     answer = get_options()->AssumeReachable ||
              now < router->last_reachable + REACHABLE_TIMEOUT;
 
-  if (router->is_running && !answer) {
-    /* it was running but now it's not. tell rephist. */
+  if (!answer) {
+    /* not considered reachable. tell rephist. */
     rep_hist_note_router_unreachable(router->cache_info.identity_digest, now);
   }
 
-- 
1.5.6.5




More information about the tor-commits mailing list