summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-28 23:57:44 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-28 23:57:44 +0000
commit9988112c87bc5e4ad39880ffd2aa898e0e62e82f (patch)
tree972e8537767d5351cfcab636756a55293fd5ec86 /src/or/connection.c
parentbc25e87754814e1bdfa01336f0375f208e9a77fc (diff)
downloadtor-9988112c87bc5e4ad39880ffd2aa898e0e62e82f.tar.gz
tor-9988112c87bc5e4ad39880ffd2aa898e0e62e82f.zip
r8973@Kushana: nickm | 2006-09-28 16:53:19 -0400
Refactor entry guard status logic a lot; allow more factors [like not having a Guard flag or being listed in ExcludeNodes] to render a guard "unlisted" (now called "unusable"); track guard down status (now called "unreachable") separately from is_running. svn:r8519
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 88346f8aad..aba21c681c 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -428,7 +428,7 @@ connection_about_to_close_connection(connection_t *conn)
if (conn->state != OR_CONN_STATE_OPEN) {
if (connection_or_nonopen_was_started_here(or_conn)) {
rep_hist_note_connect_failed(or_conn->identity_digest, time(NULL));
- entry_guard_set_status(or_conn->identity_digest, 0);
+ entry_guard_register_connect_status(or_conn->identity_digest, 0);
router_set_status(or_conn->identity_digest, 0);
control_event_or_conn_status(or_conn, OR_CONN_EVENT_FAILED);
}