Browse Source

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 19 years ago
parent
commit
a2a89da693
1 changed files with 4 additions and 0 deletions
  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;
     }
   }