From 5cfec379ae9b299fb652c8ad111581048e85ef3c Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 19 Apr 2004 20:08:42 +0000 Subject: [PATCH] expire wedged dir conns after 5min without write, not simply after 5min svn:r1673 --- src/or/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/or/main.c b/src/or/main.c index 039c6f0baf..3b583798a0 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -307,8 +307,8 @@ static void run_connection_housekeeping(int i, time_t now) { connection_t *conn = connection_array[i]; if(conn->type == CONN_TYPE_DIR && - conn->timestamp_created + 5*60 < now) { - log_fn(LOG_INFO,"Expiring wedged directory conn (purpose %d)", conn->purpose); + conn->timestamp_lastwritten + 5*60 < now) { + log_fn(LOG_WARN,"Expiring wedged directory conn (purpose %d)", conn->purpose); connection_mark_for_close(conn,0); conn->hold_open_until_flushed = 1; /* give it a last chance */ return;