]> git.ipfire.org Git - thirdparty/bind9.git/commit
Replace the HTTP/2 session's ad-hoc buffer with isc_buffer_t
authorArtem Boldariev <artem@boldariev.com>
Mon, 19 Jul 2021 12:20:30 +0000 (15:20 +0300)
committerArtem Boldariev <artem@boldariev.com>
Thu, 12 Aug 2021 11:28:16 +0000 (14:28 +0300)
commitc819caa3a16ec429c284252f9a32ee4220eccc55
treedf647bd19b8876fc1f4b09e8468b4b4c64dcae97
parent83b1d3b49b11e3101b48790f62cd5151f643f826
Replace the HTTP/2 session's ad-hoc buffer with isc_buffer_t

This commit replaces a static ad-hoc HTTP/2 session's temporary buffer
with a realloc-able isc_buffer_t object, which is being allocated on
as needed basis, lowering the memory consumption somewhat. The buffer
is needed in very rare cases, so allocating it prematurely is not
wise.

Also, it fixes a bug in http_readcb() where the ad-hoc buffer appeared
to be improperly used, leading to a situation when the processed data
from the receiving regions can be processed twice, while unprocessed
data will never be processed.
lib/isc/netmgr/http.c