]> 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 08:06:58 +0000 (09:06 +0100)
commit408b3621696e39ac6dfe58be75fad168a37b31ff
tree1cefdb4f6b48b10a18fa093a36a9f4c4aebf5386
parentcd3b58622c7401cd4150ea0a489596b1504b8869
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.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c
lib/isc/netmgr/udp.c