]> git.ipfire.org Git - thirdparty/bind9.git/commit
Rework isccc_ccmsg to support multiple messages per tcp read
authorDominik Thalhammer <dominik@thalhammer.it>
Thu, 9 Nov 2023 09:26:43 +0000 (10:26 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 18 Apr 2024 18:08:44 +0000 (20:08 +0200)
commit24ae1157e8166ad9fe5b074dfd34ff35db1f4df1
tree2d845fd4fb19fa691ddedc44e7b979e8435a9f4b
parente13728413a05bc74bbbb6ecb1c8680da33686dc2
Rework isccc_ccmsg to support multiple messages per tcp read

Previously, only a single controlconf message would be processed from a
single TCP read even if the TCP read buffer contained multiple messages.
Refactor the isccc_ccmsg unit to store the extra buffer in the internal
buffer and use the already read data first before reading from the
network again.

Co-authored-by: Ondřej Surý <ondrej@isc.org>
Co-authored-by: Dominik Thalhammer <dominik@thalhammer.it>
bin/rndc/rndc.c
lib/isccc/ccmsg.c
lib/isccc/include/isccc/ccmsg.h