Browse Source

Disable hio_set_keepalive_timeout

ithewei 3 năm trước cách đây
mục cha
commit
2c69b914d6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/tinyhttpd.c

+ 1 - 1
examples/tinyhttpd.c

@@ -373,7 +373,7 @@ static void new_conn_event(hevent_t* ev) {
 
     hio_setcb_close(io, on_close);
     hio_setcb_read(io, on_recv);
-    hio_set_keepalive_timeout(io, HTTP_KEEPALIVE_TIMEOUT);
+    // hio_set_keepalive_timeout(io, HTTP_KEEPALIVE_TIMEOUT);
 
     http_conn_t* conn = NULL;
     HV_ALLOC_SIZEOF(conn);