diff options
author | Roger Dingledine <arma@torproject.org> | 2006-08-28 18:51:36 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-08-28 18:51:36 +0000 |
commit | f75ef94f2732c9223ccb815d126c07544bd18bb8 (patch) | |
tree | 540691f5bddc4d119bb1751cf934067e2165c6f2 /src/or/main.c | |
parent | a76e032b1427b179792cba084fe16a5df38304cb (diff) | |
download | tor-f75ef94f2732c9223ccb815d126c07544bd18bb8.tar.gz tor-f75ef94f2732c9223ccb815d126c07544bd18bb8.zip |
fix bug found by Adam J. Richter: directory clients shouldn't
hang up five minutes after they begin. but directory servers
should still hang up after 5 minutes of failing to deliver
any bytes.
svn:r8271
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index b54417e422..d10996b699 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -597,7 +597,7 @@ run_connection_housekeeping(int i, time_t now) } /* Expire any directory connections that haven't sent anything for 5 min */ - if (conn->type == CONN_TYPE_DIR && + if (conn->type == CONN_TYPE_DIR && DIR_CONN_IS_SERVER(conn) && conn->timestamp_lastwritten + DIR_CONN_MAX_STALL < now) { log_info(LD_DIR,"Expiring wedged directory conn (fd %d, purpose %d)", conn->s, conn->purpose); |