瀏覽代碼

only expire wedged dir conns that haven't already been expired

svn:r1676
Roger Dingledine 21 年之前
父節點
當前提交
3c250a2fed
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/main.c

+ 1 - 0
src/or/main.c

@@ -307,6 +307,7 @@ static void run_connection_housekeeping(int i, time_t now) {
   connection_t *conn = connection_array[i];
 
   if(conn->type == CONN_TYPE_DIR &&
+     !conn->marked_for_close &&
      conn->timestamp_lastwritten + 5*60 < now) {
     log_fn(LOG_WARN,"Expiring wedged directory conn (purpose %d)", conn->purpose);
     connection_mark_for_close(conn,0);