소스 검색

Don't complain that "your server has not managed to confirm that its
ports are reachable" if we haven't been able to build any circuits
yet. Bug found by spending four hours without a v3 consensus.


svn:r12133

Roger Dingledine 18 년 전
부모
커밋
f43b9638e4
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      ChangeLog
  2. 1 0
      src/or/main.c

+ 3 - 0
ChangeLog

@@ -106,6 +106,9 @@ Changes in version 0.2.0.9-alpha - 2007-10-??
     - Don't try to download extrainfo documents when we're trying to
       fetch enough directory info to build a circuit: having enough
       info should get priority.
+    - Don't complain that "your server has not managed to confirm that its
+      ports are reachable" if we haven't been able to build any circuits
+      yet. Bug found by spending four hours without a v3 consensus.
 
   o Minor bugfixes (performance):
     - Base64 decoding was actually showing up on our profile when parsing

+ 1 - 0
src/or/main.c

@@ -1153,6 +1153,7 @@ second_elapsed_callback(int fd, short event, void *args)
   if (server_mode(options) &&
       !we_are_hibernating() &&
       seconds_elapsed > 0 &&
+      has_completed_circuit &&
       stats_n_seconds_working / TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT !=
       (stats_n_seconds_working+seconds_elapsed) /
         TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT) {