]> git.ipfire.org Git - thirdparty/bind9.git/commit
Optimise TLS stream for small write size (>= 512 bytes)
authorArtem Boldariev <artem@boldariev.com>
Mon, 2 Aug 2021 14:15:13 +0000 (17:15 +0300)
committerArtem Boldariev <artem@boldariev.com>
Thu, 12 Aug 2021 11:28:17 +0000 (14:28 +0300)
commite639957b586a0824e32ef7db7f04cd1708fa8da7
treead31f676bb94cc2b7ca336eae78ec20fd31668ca
parente301e1e3b8eae1c3e4479fcaac3464dcb1923bc7
Optimise TLS stream for small write size (>= 512 bytes)

This commit changes TLS stream behaviour in such a way, that it is now
optimised for small writes. In the case there is a need to write less
or equal to 512 bytes, we could avoid calling the memory allocator at
the expense of possibly slight increase in memory usage. In case of
larger writes, the behviour remains unchanged.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/tlsstream.c