Преглед изворни кода

bugfix: if the wedged dir conn has no bytes to flush, then we never
close it.


svn:r1924

Roger Dingledine пре 21 година
родитељ
комит
834ffa358f
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/or/main.c

+ 2 - 0
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;
   }