浏览代码

hold socks reply open until flushed (if possible)

svn:r1356
Roger Dingledine 20 年之前
父节点
当前提交
e6a2e03524
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/connection.c

+ 1 - 0
src/or/connection.c

@@ -204,6 +204,7 @@ _connection_mark_for_close(connection_t *conn, char reason)
         log_fn(LOG_INFO,"Cleaning up AP -- sending socks reject.");
         connection_ap_handshake_socks_reply(conn, NULL, 0, 0);
         conn->socks_request->has_finished = 1;
+        conn->hold_open_until_flushed = 1;
       }
       /* fall through, to do things for both ap and exit */
     case CONN_TYPE_EXIT: