From 53a16778284b4164dc5f5118137e03fa5f7b9dff Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 1 Nov 2021 21:06:07 +0100 Subject: [PATCH] Reset keepalive per new tcp session --- util/netevent.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.5