[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] bugfix: when we try to determine the reachability of our di...
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
directory.c
Log Message:
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.
Index: directory.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.274
retrieving revision 1.275
diff -u -d -r1.274 -r1.275
--- directory.c 13 Sep 2005 21:14:55 -0000 1.274
+++ directory.c 14 Sep 2005 03:49:17 -0000 1.275
@@ -269,6 +269,8 @@
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) {