aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-28 17:56:17 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-28 17:56:17 +0000
commit834ffa358fc0bc61cfb22b647c437ad1bc58269f (patch)
tree3b4d80ac9e350c3c3dc1bfe34d205adc7b7e847b /src
parent987c90cced0cec201d7f2160eafa3effb60030cf (diff)
downloadtor-834ffa358fc0bc61cfb22b647c437ad1bc58269f.tar
tor-834ffa358fc0bc61cfb22b647c437ad1bc58269f.tar.gz
bugfix: if the wedged dir conn has no bytes to flush, then we never
close it. svn:r1924
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index ce510b9be..1a75158bf 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -360,6 +360,8 @@ static void run_connection_housekeeping(int i, time_t now) {
connection_mark_for_close(conn);
conn->hold_open_until_flushed = 1; /* give it a last chance */
}
+ } else {
+ connection_mark_for_close(conn);
}
return;
}