]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-ana: Properly detect client abort when forwarding response (v2)
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 Dec 2025 14:21:01 +0000 (15:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Dec 2025 07:41:08 +0000 (08:41 +0100)
commita483450fa24a365f21b67296bebcbb10cc336da3
tree4d649539d966e0a8da4bf94de6fcf487a2860588
parent5b19d958506d207247d27bb043033a530af343ab
BUG/MEDIUM: http-ana: Properly detect client abort when forwarding response (v2)

The first attempt to fix this issue (c672b2a29 "BUG/MINOR: http-ana:
Properly detect client abort when forwarding the response") was not fully
correct and could be responsible to false report of client abort during the
response forwarding. I guess it is possible to truncate the response.

Instead, we must also take care that the client closed on its side, by
checking SC_FL_EOS flag on the front SC. Indeed, if the client has aborted,
this flag should be set.

This patch should be backported as far as 2.8.
src/http_ana.c