浏览代码

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
     - Don't try to download extrainfo documents when we're trying to
       fetch enough directory info to build a circuit: having enough
       fetch enough directory info to build a circuit: having enough
       info should get priority.
       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):
   o Minor bugfixes (performance):
     - Base64 decoding was actually showing up on our profile when parsing
     - 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) &&
   if (server_mode(options) &&
       !we_are_hibernating() &&
       !we_are_hibernating() &&
       seconds_elapsed > 0 &&
       seconds_elapsed > 0 &&
+      has_completed_circuit &&
       stats_n_seconds_working / TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT !=
       stats_n_seconds_working / TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT !=
       (stats_n_seconds_working+seconds_elapsed) /
       (stats_n_seconds_working+seconds_elapsed) /
         TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT) {
         TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT) {