]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-ana: Report 502 from req analyzer only during rsp forwarding
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 15 Apr 2025 06:18:48 +0000 (08:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 15 Apr 2025 14:28:15 +0000 (16:28 +0200)
commitd160046e2c9caae7deff5d59abc9694b6e664446
tree8c960e85a4e1e7084c6eee032a19842f370ab0d8
parentc672b2a297158bcd673feab2fd366709f9fc3d4f
BUG/MEDIUM: http-ana: Report 502 from req analyzer only during rsp forwarding

A server abort must be handled by the request analyzers only when the
response forwarding was already started. Otherwise, it it the responsability
of the response analyzer to detect this event. L7-retires and conditions to
decide to silently close a client conneciotn are handled by this analyzer.

Because a reused server connections closed too early could be detected at
the wrong place, it was possible to get a 502/SH instead of a silent close,
preventing the client to safely retries its request.

Thanks to this patch, we are able to silently close the client connection in
this case and eventually to perform a L7 retry.

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