]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-client: Don't wake http-client applet if nothing was xferred
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Jul 2025 05:46:26 +0000 (07:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Jul 2025 14:27:24 +0000 (16:27 +0200)
commitfffdac42df4848420028f89b14c2a90c12dbf9ab
treeeb13d2ce4d4759e8a918e782e354c98c72bd4a25
parent479c9fb067dec223ce185c0dd9afbaa348d3a4b2
BUG/MEDIUM: http-client: Don't wake http-client applet if nothing was xferred

When data are transferred to or from the htt-pclient, the applet is
systematically woken up, even when no data are transferred. This could lead
to needlessly wakeups. When called from a lua script, if data are blocked
for a while, this leads to a wakeup ping-pong loop where the http-client
applet is woken up by the lua script which wakes back the script.

To fix the issue, in httpclient_req_xfer() and httpclient_res_xfer()
functions, we now take care to not wake the http-client applet up when no
data are transferred.

This patch must be backported as far as 2.6.
src/http_client.c