aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-10-24 03:34:03 +0000
committerRoger Dingledine <arma@torproject.org>2007-10-24 03:34:03 +0000
commit7a35dad00722413c5816f9b5557c61319f5984d3 (patch)
treec8c064d53c9e71ffe0722694e0ea7e4f2a68f4b0 /src/or/dirserv.c
parentfd911646628cd4a30614c1a44ed51d3e50c8664d (diff)
downloadtor-7a35dad00722413c5816f9b5557c61319f5984d3.tar
tor-7a35dad00722413c5816f9b5557c61319f5984d3.tar.gz
Authorities no longer send back "400 you're unreachable please fix
it" errors to Tor servers that aren't online all the time. We're supposed to tolerate these servers now. svn:r12136
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index cf941f6c2..e9d552e8a 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -883,22 +883,6 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
router->is_running = answer;
}
-/** Return 1 if we're confident that there's a problem with
- * <b>router</b>'s reachability and its operator should be notified.
- */
-int
-dirserv_thinks_router_is_blatantly_unreachable(routerinfo_t *router,
- time_t now)
-{
- if (router->is_hibernating)
- return 0;
- if (now >= router->last_reachable + 5*REACHABLE_TIMEOUT &&
- router->testing_since &&
- now >= router->testing_since + 5*REACHABLE_TIMEOUT)
- return 1;
- return 0;
-}
-
/** Based on the routerinfo_ts in <b>routers</b>, allocate the
* contents of a v1-style router-status line, and store it in
* *<b>router_status_out</b>. Return 0 on success, -1 on failure.
@@ -2452,7 +2436,6 @@ dirserv_orconn_tls_done(const char *address,
ri->nickname);
rep_hist_note_router_reachable(digest_rcvd, now);
ri->last_reachable = now;
- ri->num_unreachable_notifications = 0;
}
});
/* FFFF Maybe we should reinstate the code that dumps routers with the same