]> git.ipfire.org Git - thirdparty/bind9.git/commit
Limit the outgoing UDP send queue size
authorOndřej Surý <ondrej@isc.org>
Mon, 16 Sep 2024 07:10:36 +0000 (09:10 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 17 Sep 2024 14:02:03 +0000 (14:02 +0000)
commitb576c4c9771e967e035e3fe761cd256a2067f754
treeff212905ef7be145af035d1567b475f711592571
parentddec5beb909cbb1a49702e4fc7e41c962f84e0a2
Limit the outgoing UDP send queue size

If the operating system UDP queue gets full and the outgoing UDP sending
starts to be delayed, BIND 9 could exhibit memory spikes as it tries to
enqueue all the outgoing UDP messages.  As those are not going to be
delivered anyway (as we argued when we stopped enlarging the operating
system send and receive buffers), try to send the UDP messages directly
using `uv_udp_try_send()` and if that fails, drop the outgoing UDP
message.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/udp.c