[or-cvs] one more edge case that could paralyze a client with fear

arma at seul.org arma at seul.org
Mon Apr 3 06:59:09 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerlist.c 
Log Message:
one more edge case that could paralyze a client with fear


Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.481
retrieving revision 1.482
diff -u -p -d -r1.481 -r1.482
--- routerlist.c	3 Apr 2006 06:37:35 -0000	1.481
+++ routerlist.c	3 Apr 2006 06:59:07 -0000	1.482
@@ -3445,7 +3445,7 @@ update_router_descriptor_cache_downloads
             continue;
           if (router_get_by_descriptor_digest(rs->descriptor_digest)) {
             log_warn(LD_BUG,
-                     "We have a router descriptor, but need_to_mirror=1.");
+                 "Bug: We have a router descriptor, but need_to_mirror=1.");
             rs->need_to_mirror = 0;
             continue;
           }
@@ -3579,6 +3579,8 @@ router_have_minimum_dir_info(void)
        if (rs->status.is_running)
          num_running++;
      });
+  /* XXX if more than 3/4 of the routers in the network are down
+   * or invalid, does this mean we'll never become happy? -RD */
   res = smartlist_len(routerlist->routers) >= (avg/4) && num_running > 2;
  done:
   if (res && !have_enough) {



More information about the tor-commits mailing list