]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add configuration option to set send/recv buffers on the nm sockets
authorOndřej Surý <ondrej@sury.org>
Wed, 2 Dec 2020 19:51:38 +0000 (20:51 +0100)
committerOndřej Surý <ondrej@sury.org>
Mon, 17 May 2021 06:47:09 +0000 (08:47 +0200)
commit45090894194361574eafd366df44dffa291a3493
tree9fb13ed3582a3ae06834366293c31e29b433bd17
parent089bfe20f99a94178a189dda873bbb8fa9ebeefe
Add configuration option to set send/recv buffers on the nm sockets

This commit adds a new configuration option to set the receive and send
buffer sizes on the TCP and UDP netmgr sockets.  The default is `0`
which doesn't set any value and just uses the value set by the operating
system.

There's no magic value here - set it too small and the performance will
drop, set it too large, the buffers can fill-up with queries that have
already timeouted on the client side and nobody is interested for the
answer and this would just make the server clog up even more by making
it produce useless work.

The `netstat -su` can be used on POSIX systems to monitor the receive
and send buffer errors.
17 files changed:
bin/named/config.c
bin/named/named.conf.rst
bin/named/server.c
doc/arm/reference.rst
doc/man/named.conf.5in
doc/misc/options
doc/misc/options.active
doc/misc/options.grammar.rst
lib/isc/include/isc/netmgr.h
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
lib/isc/win32/libisc.def.in
lib/isccfg/namedconf.c