Merge pull request #562 from NLnetLabs/bugfix/reset-keepalive-per-tcp-session

Reset keepalive per new tcp session
This commit is contained in:
gthess 2021-12-01 03:57:04 +01:00 committed by GitHub
commit 806a75808d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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 */