aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-06-13 04:18:26 +0000
committerRoger Dingledine <arma@torproject.org>2008-06-13 04:18:26 +0000
commitd2ec69a7b0c9685e2d0c09752103d01571c8ed8e (patch)
treebd0a5fb72b34c7ecdb74a1cf37dd6be8b8a9f278
parenta18d2412520af93f7059dc28e80eda2f7cbdc485 (diff)
downloadtor-d2ec69a7b0c9685e2d0c09752103d01571c8ed8e.tar.gz
tor-d2ec69a7b0c9685e2d0c09752103d01571c8ed8e.zip
backport r15074, r15076, r15077:
When we haven't had any application requests lately, don't bother logging that we have expired a bunch of descriptors. svn:r15182
-rw-r--r--ChangeLog9
-rw-r--r--src/or/main.c3
-rw-r--r--src/or/routerlist.c4
3 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 6762e7ffe5..f1925d5b12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,11 +19,14 @@ Changes in version 0.2.0.28-rc - 2008-06-??
- If we change our MaxAdvertisedBandwidth and then reload torrc,
Tor won't realize it should publish a new relay descriptor. Fixes
bug 688, reported by mfr.
+ - While setting up a hidden service, some valid introduction circuits
+ were overlooked and abandoned. This might be the reason for
+ the long delay in making a hidden service available. Bugfix on
+ 0.2.0.13-alpha.
+ - When we haven't had any application requests lately, don't bother
+ logging that we have expired a bunch of descriptors.
- Fix unit tests in 0.2.0.27-rc.
- Fix compile on Windows.
- - While setting up a hidden service, some valid introduction circuits
- were overlooked and given up. This might be the reason for the long
- delay in making a hidden service available. Bugfix on 0.2.0.13-alpha.
Changes in version 0.2.0.27-rc - 2008-06-03
diff --git a/src/or/main.c b/src/or/main.c
index 198bcf9129..e0b9f6ebbf 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -640,7 +640,8 @@ directory_info_has_arrived(time_t now, int from_cache)
or_options_t *options = get_options();
if (!router_have_minimum_dir_info()) {
- log(LOG_NOTICE, LD_DIR,
+ int quiet = directory_too_idle_to_fetch_descriptors(options, now);
+ log(quiet ? LOG_INFO : LOG_NOTICE, LD_DIR,
"I learned some more directory information, but not enough to "
"build a circuit: %s", get_dir_info_status_string());
update_router_descriptor_downloads(now);
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 72f5a8d896..5d2c65cd11 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4188,7 +4188,9 @@ update_router_have_minimum_dir_info(void)
control_event_client_status(LOG_NOTICE, "ENOUGH_DIR_INFO");
}
if (!res && have_min_dir_info) {
- log(LOG_NOTICE, LD_DIR,"Our directory information is no longer up-to-date "
+ int quiet = directory_too_idle_to_fetch_descriptors(options, now);
+ log(quiet ? LOG_INFO : LOG_NOTICE, LD_DIR,
+ "Our directory information is no longer up-to-date "
"enough to build circuits: %s", dir_info_status);
control_event_client_status(LOG_NOTICE, "NOT_ENOUGH_DIR_INFO");
}