]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon: make idle timeout for incoming connection configurable
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Tue, 26 Jun 2018 08:49:23 +0000 (10:49 +0200)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 7 Sep 2018 17:45:21 +0000 (10:45 -0700)
daemon/network.c
daemon/network.h

index 190bb831febebabfaf7d855220ee3f23694bbb68..456c71701a0748da894fef8c642abecf1dc012b4 100644 (file)
@@ -56,6 +56,7 @@ void network_init(struct network *net, uv_loop_t *loop, int tcp_backlog)
                        tls_session_ticket_ctx_create(loop, NULL, 0);
                net->tcp.in_idle_timeout = 10000;
                net->tcp_backlog = tcp_backlog;
+               net->tcp.in_idle_timeout = 10000;
        }
 }
 
index 548d61a23ea13e24c157615036366c1f9571e75e..a47564fbce1cec1cc83b21492f0ec70555b0e6a0 100644 (file)
@@ -55,6 +55,7 @@ struct network {
        struct tls_session_ticket_ctx *tls_session_ticket_ctx;
        struct net_tcp_param tcp;
     int tcp_backlog;
+       struct net_tcp_param tcp;
 };
 
 void network_init(struct network *net, uv_loop_t *loop, int tcp_backlog);