From 538655cd806b46519512e10ef097790afa1b36b9 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 12 Jul 2004 18:19:55 +0000 Subject: if connecting to an OR fails immediately, mark it as down svn:r2029 --- src/or/connection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/or/connection.c') diff --git a/src/or/connection.c b/src/or/connection.c index 90c8197c4..578466bae 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -829,7 +829,9 @@ int connection_handle_write(connection_t *conn) { log_fn(LOG_DEBUG,"in-progress connect failed. Removing."); connection_close_immediate(conn); connection_mark_for_close(conn); - /* Previously we tested conn->nickname; is this right? */ + /* it's safe to pass OPs to router_mark_as_down(), since it just + * ignores unrecognized routers + */ if (conn->type == CONN_TYPE_OR) router_mark_as_down(conn->identity_digest); return -1; -- cgit v1.2.3