aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-19 20:08:42 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-19 20:08:42 +0000
commit5cfec379ae9b299fb652c8ad111581048e85ef3c (patch)
tree8eda36463025ee8da101c79b4f3eeeb3ca941d11 /src/or
parent2398eacfaa55b59f876ed93236bec2032666ebb3 (diff)
downloadtor-5cfec379ae9b299fb652c8ad111581048e85ef3c.tar
tor-5cfec379ae9b299fb652c8ad111581048e85ef3c.tar.gz
expire wedged dir conns after 5min without write, not simply after 5min
svn:r1673
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 039c6f0ba..3b583798a 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;