]> git.ipfire.org Git - thirdparty/bind9.git/commit
Simplify buffering code logic in http_send_outgoing()
authorArtem Boldariev <artem@boldariev.com>
Fri, 30 Jul 2021 10:02:41 +0000 (13:02 +0300)
committerArtem Boldariev <artem@boldariev.com>
Thu, 12 Aug 2021 11:28:17 +0000 (14:28 +0300)
commitbd69c7c57c828139c6df8d02b194344ef91cf6f5
treeefc80041a8ff0c8cdc92de37b7764410c9ca98c2
parenta32faa20b43e463778794434b68bcfd8bf2bff8f
Simplify buffering code logic in http_send_outgoing()

This commit significantly simplifies the code in http_send_outgoing()
as it was unnecessary complicated, because it was dealing with
multiple statically and dynamically allocated buffers, making it
extremely hard to follow, as well as making it to do unnecessary
memory copying in some situations. This commit fixes these issues,
while retaining the high level buffering logic.
lib/isc/netmgr/http.c