소스 검색

one more edge case that could paralyze a client with fear

svn:r6310
Roger Dingledine 19 년 전
부모
커밋
7198af7fbe
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/or/routerlist.c

+ 3 - 1
src/or/routerlist.c

@@ -3445,7 +3445,7 @@ update_router_descriptor_cache_downloads(time_t now)
             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) {