]> git.ipfire.org Git - thirdparty/bind9.git/commit
Throttle reading from TCP if the sends are not getting through
authorOndřej Surý <ondrej@isc.org>
Thu, 18 Jan 2024 16:24:22 +0000 (17:24 +0100)
committerNicki Křížek <nicki@isc.org>
Mon, 10 Jun 2024 16:43:44 +0000 (18:43 +0200)
commitc6f13f12cd862ffae071e56ee7e1fa9998fc23c3
tree01e58c302b3ce893b759967e11ef21345d966326
parent139ff18da9e810330c7dd56562bc5bb632eb4af7
Throttle reading from TCP if the sends are not getting through

When TCP client would not read the DNS message sent to them, the TCP
sends inside named would accumulate and cause degradation of the
service.  Throttle the reading from the TCP socket when we accumulate
enough DNS data to be sent.  Currently this is limited in a way that a
single largest possible DNS message can fit into the buffer.

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