diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-12 18:19:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-12 18:19:55 +0000 |
commit | 538655cd806b46519512e10ef097790afa1b36b9 (patch) | |
tree | 88af9770af63d84e3d630334f764d0e828342662 /src/or/connection.c | |
parent | e167eeb18e344830d5bd0fc6b70720ac41721109 (diff) | |
download | tor-538655cd806b46519512e10ef097790afa1b36b9.tar tor-538655cd806b46519512e10ef097790afa1b36b9.tar.gz |
if connecting to an OR fails immediately, mark it as down
svn:r2029
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |