aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-30 21:27:16 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-30 21:27:16 +0000
commit5c8fc2f7059c87d283603c59b21dea541cbf19aa (patch)
tree1ae7b14b01782ed75834087338c73ce1a3d6c1fe /src/or/connection.c
parentdc8f40e4cb6ab40f42bd5557aeea1e2b4d97f6b5 (diff)
downloadtor-5c8fc2f7059c87d283603c59b21dea541cbf19aa.tar
tor-5c8fc2f7059c87d283603c59b21dea541cbf19aa.tar.gz
mark all dirservers up at boot; mark a dirserver down if dir fetch fails
svn:r519
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index a0fea8c70..ab401771b 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -329,13 +329,12 @@ int connection_handle_read(connection_t *conn) {
conn->state == DIR_CONN_STATE_CONNECTING_UPLOAD)) {
/* it's a directory server and connecting failed: forget about this router */
/* XXX I suspect pollerr may make Windows not get to this point. :( */
- router_forget_router(conn->addr,conn->port);
- /* FIXME i don't think router_forget_router works. */
+ router_mark_as_down(conn->nickname);
}
return -1;
}
if(connection_process_inbuf(conn) < 0) {
- //log_fn(LOG_DEBUG,"connection_process_inbuf returned %d.",retval);
+// log_fn(LOG_DEBUG,"connection_process_inbuf returned -1.");
return -1;
}
return 0;