BUG/MINOR: Don't report early srv aborts on request forwarding in DONE state
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Nov 2024 09:51:18 +0000 (10:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Nov 2024 14:34:08 +0000 (15:34 +0100)
commit7cf18ab7c8d522de019d8cabbbfc65df8fa7ae3c
tree130d0f790e625fc18b94e5cc2c140f51635d021f
parent1b18a4cad1642f7d7bf333df209d73f82296c0ac
BUG/MINOR: Don't report early srv aborts on request forwarding in DONE state

L7-retries may be ignored if server aborts are detected during the request
forwarding, when the request is already in DONE state.

When a request was fully processed (so in HTTP_MSG_DONE state) and is
waiting for be forwarded to the server, there is a test to detect server
aborts, to be able to report the error. However, this test must be skipped
if the response was not received yet, to let the reponse analyszers handle
the abort. It is important to properly handle the retries. This test must
only be performed if the response analysis was finished. It means the
response must be at least in HTTP_MSG_BODY state.

This patch should be backported as far as 2.8.

(cherry picked from commit a930e99f4699676ea72f72ba1fb99c953da0d74e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_ana.c