]> git.ipfire.org Git - thirdparty/bind9.git/commit
Disable Nagle's algorithm for TLS connections by default
authorArtem Boldariev <artem@boldariev.com>
Thu, 25 Aug 2022 19:37:26 +0000 (22:37 +0300)
committerArtem Boldariev <artem@boldariev.com>
Tue, 20 Dec 2022 20:13:53 +0000 (22:13 +0200)
commit05cfb27b809f55ecce5f7edef5b706b63738636e
tree9408554144eab4f6f3125b505e80b04bf93925c5
parent371b02f37a93502a032097c5959881d2fc858270
Disable Nagle's algorithm for TLS connections by default

This commit ensures that Nagle's algorithm is disabled by default for
TLS connections on best effort basis, just like other networking
software (e.g. NGINX) does, as, in the case of TLS, we are not
interested in trading latency for throughput, rather vice versa.

We attempt to disable it as early as we can, right after TCP
connections establishment, as an attempt to speed up handshake
handling.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tlsstream.c