diff options
author | Roger Dingledine <arma@torproject.org> | 2004-05-28 17:56:17 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-05-28 17:56:17 +0000 |
commit | 834ffa358fc0bc61cfb22b647c437ad1bc58269f (patch) | |
tree | 3b4d80ac9e350c3c3dc1bfe34d205adc7b7e847b /src | |
parent | 987c90cced0cec201d7f2160eafa3effb60030cf (diff) | |
download | tor-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.c | 2 |
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; } |