]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: if the wedged dir conn has no bytes to flush, then we never
authorRoger Dingledine <arma@torproject.org>
Fri, 28 May 2004 17:56:17 +0000 (17:56 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 28 May 2004 17:56:17 +0000 (17:56 +0000)
close it.

svn:r1924

src/or/main.c

index ce510b9bea7a7b6cf999a9019e6b1c2f93931832..1a75158bf4d130f49092efe25622ce5786eb3c4a 100644 (file)
@@ -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;
   }