summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-09-14 03:49:17 +0000
committerRoger Dingledine <arma@torproject.org>2005-09-14 03:49:17 +0000
commitca727ba6e1544b7657c5c93183fd64889b0cd2ea (patch)
treee7f13fa8b83019e2faf17771522c12c59db74a95
parent8c3f0dfe09edfcd3239b6142e89de987a59ed4c1 (diff)
downloadtor-ca727ba6e1544b7657c5c93183fd64889b0cd2ea.tar.gz
tor-ca727ba6e1544b7657c5c93183fd64889b0cd2ea.zip
bugfix: when we try to determine the reachability of our dirport,
and it doesn't work, don't freak out and mark ourselves as down and try somewhere else. just calmly fail. svn:r5050
-rw-r--r--src/or/directory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 43eb9592c7..47f1a936d2 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -269,6 +269,8 @@ directory_initiate_command_trusted_dir(trusted_dir_server_t *dirserv,
void
connection_dir_request_failed(connection_t *conn)
{
+ if (router_digest_is_me(conn->identity_digest))
+ return; /* this was a test fetch. don't retry. */
router_mark_as_down(conn->identity_digest); /* don't try him again */
if (conn->purpose == DIR_PURPOSE_FETCH_DIR ||
conn->purpose == DIR_PURPOSE_FETCH_RUNNING_LIST) {