]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add TCP, TCPDNS and TLSDNS write timer
authorOndřej Surý <ondrej@isc.org>
Wed, 9 Feb 2022 10:21:04 +0000 (11:21 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 17 Feb 2022 09:05:24 +0000 (10:05 +0100)
commit6a88131d034ed58d3f0774721caa1e222fc7c245
tree50e3c2fc600b5d049c4e885ad529092debd3b07c
parent11ae4399d92283601ef7d3aa19ad156c9cf311e1
Add TCP, TCPDNS and TLSDNS write timer

When the outgoing TCP write buffers are full because the other party is
not reading the data, the uv_write() could wait indefinitely on the
uv_loop and never calling the callback.  Add a new write timer that uses
the `tcp-idle-timeout` value to interrupt the TCP connection when we are
not able to send data for defined period of time.

(cherry picked from commit 408b3621696e39ac6dfe58be75fad168a37b31ff)
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