]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http-ana: Set termination state before returning haproxy response
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Nov 2023 07:38:45 +0000 (08:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Nov 2023 10:11:12 +0000 (11:11 +0100)
commit0fd25514d65dadbe62867c8b354115c377c87db0
tree45adb6bcfd4c1cd61367b03a74f2e01982187485
parent2de9e3ae24dda5c4ea1d4f2a4bd9358e8ab2f712
MEDIUM: http-ana: Set termination state before returning haproxy response

When, for any reason and at any step, HAProxy decides to interrupt an HTTP
transaction, it returns a dedicated responses to the client (possibly empty)
and it sets the stream flags used to produce the session termination state.
These both operation were performed in any order, depending on the code
path. Most of time, the HAPRoxy response is produced first.

With this patch, the stream flags for the termination state are now set
first. This way, these flags become visible from http-after-reponse rule
sets. Only errors when the HAProxy response is generated are reported later.
src/http_act.c
src/http_ana.c