Explorar o código

and don't try to build the descriptor every second, if it's dirty
but we don't have a known address.


svn:r6777

Roger Dingledine %!s(int64=19) %!d(string=hai) anos
pai
achega
a2a89da693
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/or/router.c

+ 4 - 0
src/or/router.c

@@ -751,6 +751,10 @@ router_rebuild_descriptor(int force)
     if (router_guess_address_from_dir_headers(&addr) < 0) {
       log_info(LD_CONFIG, "No hints from directory headers either. "
                "Will try again later.");
+      /* Stop trying to rebuild our descriptor every second. We'll
+       * learn that it's time to try again when server_has_changed_ip()
+       * marks it dirty. */
+      desc_clean_since = time(NULL);
       return -1;
     }
   }