Просмотр исходного кода

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 лет назад
Родитель
Сommit
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) {