소스 검색

bugfix: we were closing socks-request connections immediately, rather
than flushing them, if they were timing out before we marked them


svn:r1366

Roger Dingledine 20 년 전
부모
커밋
bcda3ebaef
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/or/connection.c

+ 6 - 0
src/or/connection.c

@@ -224,6 +224,12 @@ _connection_mark_for_close(connection_t *conn, char reason)
       ;
     }
   conn->marked_for_close = 1;
+
+  /* in case we're going to be held-open-til-flushed, reset
+   * the number of seconds since last successful write, so
+   * we get our whole 15 seconds */
+  conn->timestamp_lastwritten = time(NULL);
+
   return retval;
 }