summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-09-03 04:37:30 +0000
committerRoger Dingledine <arma@torproject.org>2005-09-03 04:37:30 +0000
commit33b2abbc9005ef993bec3fc411bade881b125c11 (patch)
tree13f6ff68c53d4f590b48f89e070e33e51f9fda28
parent467fd6e4e67bad6389a95603e572e6ade860324f (diff)
downloadtor-33b2abbc9005ef993bec3fc411bade881b125c11.tar.gz
tor-33b2abbc9005ef993bec3fc411bade881b125c11.zip
remove redundant logs about unreachable servers
svn:r4905
-rw-r--r--src/or/dirserv.c19
-rw-r--r--src/or/main.c1
-rw-r--r--src/or/or.h1
3 files changed, 0 insertions, 21 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index a118566731..91a4ae28d1 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -554,25 +554,6 @@ list_server_status(smartlist_t *routers, char **router_status_out)
return 0;
}
-/** Log complaints about each server that is connected to us and has
- * been found unreachable for the past several testing periods.
- */
-void
-dirserv_log_unreachable_servers(time_t now)
-{
- smartlist_t *descriptor_list = get_descriptor_list();
- if (!descriptor_list)
- return;
-
- SMARTLIST_FOREACH(descriptor_list, routerinfo_t *, ri,
- {
- if (dirserv_thinks_router_is_blatantly_unreachable(ri, now))
- log_fn(LOG_NOTICE,
- "Router %s (%s:%d) is connected to us but not reachable by us.",
- ri->nickname, ri->address, ri->or_port);
- });
-}
-
/* Given a (possibly empty) list of config_line_t, each line of which contains
* a list of comma-separated version numbers surrounded by optional space,
* allocate and return a new string containing the version numbers, in order,
diff --git a/src/or/main.c b/src/or/main.c
index 105e792ab5..2aa2dc1195 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -692,7 +692,6 @@ run_scheduled_events(time_t now)
routerlist_remove_old_routers(ROUTER_MAX_AGE);
if (authdir_mode(options)) {
- dirserv_log_unreachable_servers(now);
if (!we_are_hibernating()) { /* try to determine reachability */
router_retry_connections(1);
}
diff --git a/src/or/or.h b/src/or/or.h
index b976590b80..3c812109d7 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1677,7 +1677,6 @@ void dirserv_free_descriptors(void);
int dirserv_thinks_router_is_blatantly_unreachable(routerinfo_t *router,
time_t now);
int list_server_status(smartlist_t *routers, char **router_status_out);
-void dirserv_log_unreachable_servers(time_t now);
int dirserv_dump_directory_to_string(char **dir_out,
crypto_pk_env_t *private_key);
void directory_set_dirty(void);