]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http-ana: Don't crush stream termination condition on internal error
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 May 2024 09:29:58 +0000 (11:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 May 2024 07:04:38 +0000 (09:04 +0200)
commit746e6f859730d4c1a0876f9a73a9e301f8a243a9
tree863169f4fb3ed4a85e33b12a6fdacb19a755acc4
parent39caa20b3c9cc273f39fe704969b1d75519e424c
BUG/MINOR: http-ana: Don't crush stream termination condition on internal error

When internal error is reported from an HTTP analyzer, we must take care to
not set the stream termination condition if it was already set. For
instance, it happens when a message rewrite fails. In this case
SF_ERR_PXCOND is set by the rule. The HTTP analyzer must not crush it with
SF_ERR_INTERNAL.

The regression was introduced with the commit 0fd25514d6 ("MEDIUM: http-ana:
Set termination state before returning haproxy response").

The bug was discovered working in the issue #2568. It must be backported to
2.9.
src/http_ana.c