aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-07-17 06:59:56 +0000
committerRoger Dingledine <arma@torproject.org>2006-07-17 06:59:56 +0000
commita2a89da693edd2738dc0be62746149ff5ed5ad9a (patch)
treeb3e78ef033007259f7716408159eff559542188c /src/or/router.c
parent42e2057d675780f832634a7e193d6987a4402212 (diff)
downloadtor-a2a89da693edd2738dc0be62746149ff5ed5ad9a.tar
tor-a2a89da693edd2738dc0be62746149ff5ed5ad9a.tar.gz
and don't try to build the descriptor every second, if it's dirty
but we don't have a known address. svn:r6777
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 987a70798..a4782138d 100644
--- a/src/or/router.c
+++ b/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;
}
}