Skip to content

Commit

Permalink
Merge pull request #562 from NLnetLabs/bugfix/reset-keepalive-per-tcp…
Browse files Browse the repository at this point in the history
…-session

Reset keepalive per new tcp session
  • Loading branch information
gthess committed Dec 1, 2021
2 parents 173a8bb + 53a1677 commit 806a758
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/netevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 806a758

Please sign in to comment.