]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
give wedged dir conns a last chance to flush
authorRoger Dingledine <arma@torproject.org>
Mon, 19 Apr 2004 01:59:20 +0000 (01:59 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 19 Apr 2004 01:59:20 +0000 (01:59 +0000)
svn:r1671

src/or/main.c

index c6770aa85330825a77cc84f43f6c9ebd6ec6db40..039c6f0baf92d9f0f7cc16b9bbd292f9a0542dfc 100644 (file)
@@ -310,6 +310,7 @@ static void run_connection_housekeeping(int i, time_t now) {
      conn->timestamp_created + 5*60 < now) {
     log_fn(LOG_INFO,"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;
   }