]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Reset keepalive per new tcp session 562/head
authorWillem Toorop <willem@nlnetlabs.nl>
Mon, 1 Nov 2021 20:06:07 +0000 (21:06 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 1 Nov 2021 20:06:07 +0000 (21:06 +0100)
util/netevent.c

index 19ac2c83732d16c49b35290e0f3f9acee8df1153..99dec238a90994b947ed7b2c267e5853b1e0acb9 100644 (file)
@@ -818,6 +818,7 @@ setup_tcp_handler(struct comm_point* c, int fd, int cur, int max)
 #endif
        c->tcp_is_reading = 1;
        c->tcp_byte_count = 0;
+       c->tcp_keepalive = 0;
        /* if more than half the tcp handlers are in use, use a shorter
         * timeout for this TCP connection, we need to make space for
         * other connections to be able to get attention */