]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-client: Ask for more room when request data cannot be xferred
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Jul 2025 06:17:49 +0000 (08:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Jul 2025 14:27:24 +0000 (16:27 +0200)
commite4a0d40c62594b4504fd7443158731fef54e040a
treebd82d7aeffdfe11cd33d738a41be652168403745
parentd9ca8f6b71cd17bae0718f0b1e9da919fc00264d
BUG/MEDIUM: http-client: Ask for more room when request data cannot be xferred

When the request payload cannot be xferred to the channel because its buffer
is full, we must request for more room by calling sc_need_room(). It is
important to be sure the httpclient applet will not be woken up in loop to
push more data while it is not possible.

It is only an issue with large POSTs, when the payload is streamed.

This patch must be backported as far as 2.6. Note that on 2.6,
sc_need_room() only takes one argument.
src/http_client.c