]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: httpclient: consume partly the blocks when necessary
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 9 Mar 2022 10:58:51 +0000 (11:58 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 14 Mar 2022 14:10:12 +0000 (15:10 +0100)
commitc8f1eb99b4004444c7674d48d967ea3040a62d6e
treeb6d77a47a54519ccf90481fd7b18c3bef6fdcaea
parentf5ba296ec8441d5aca838d1e6abdeb8dec125892
BUG/MINOR: httpclient: consume partly the blocks when necessary

Consume partly the blocks in the httpclient I/O handler when there is
not enough room in the destination buffer for the whole block or when
the block is not contained entirely in the channel's output.

It prevents the I/O handler to be stuck in cases when we need to modify
the buffer with a filter for exemple.

Must be backported in 2.5.
src/http_client.c