[or-cvs] and don"t try to build the descriptor every second, if it"s...
arma at seul.org
arma at seul.org
Mon Jul 17 06:59:58 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
router.c
Log Message:
and don't try to build the descriptor every second, if it's dirty
but we don't have a known address.
Index: router.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/router.c,v
retrieving revision 1.271
retrieving revision 1.272
diff -u -p -d -r1.271 -r1.272
--- router.c 17 Jul 2006 06:54:28 -0000 1.271
+++ router.c 17 Jul 2006 06:59:56 -0000 1.272
@@ -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;
}
}
More information about the tor-commits
mailing list