]> git.ipfire.org Git - thirdparty/bind9.git/commit
Change single write timer to per-send timers
authorOndřej Surý <ondrej@isc.org>
Thu, 10 Mar 2022 12:51:08 +0000 (13:51 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 17 Mar 2022 15:07:52 +0000 (16:07 +0100)
commitd17d043499b0a6927738fa0a09daa71a53e90e11
treeffa602d6d09d20e63db56cff04beb4d77f4a5a87
parent25382f1d2d0834b92085bf0afe36fe6d10d845fe
Change single write timer to per-send timers

Previously, there was a single per-socket write timer that would get
restarted for every new write.  This turned out to be insufficient
because the other side could keep reseting the timer, and never reading
back the responses.

Change the single write timer to per-send timer which would in turn
reset the TCP connection on the first send timeout.

(cherry picked from commit a761aa59e3d988b53e2f42f45bce53f2bea863ec)
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/udp.c