mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-16 09:08:01 -05:00
Reset keepalive per new tcp session
This commit is contained in:
parent
ecb0b44ba8
commit
53a1677828
1 changed files with 1 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue