From: Willem Toorop Date: Mon, 1 Nov 2021 20:06:07 +0000 (+0100) Subject: Reset keepalive per new tcp session X-Git-Tag: release-1.14.0rc1~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F562%2Fhead;p=thirdparty%2Funbound.git Reset keepalive per new tcp session --- diff --git a/util/netevent.c b/util/netevent.c index 19ac2c837..99dec238a 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -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 */