mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 23:02:34 -04:00
BUG/MINOR: http-ana: Don't report a server abort if response payload is invalid
If a parsing error is reported by the mux on the response payload, a proxy error (PRXCOND) must be reported instead of a server abort (SRVCL). Because of this bug, inavlid response may are reported as "SD--" or "SL--" in logs instead of "PD--" or "PL--". This patch must be backported to all stable versions.
This commit is contained in:
parent
f98feda53f
commit
6790067e79
1 changed files with 0 additions and 2 deletions
|
|
@ -2247,8 +2247,6 @@ int http_response_forward_body(struct stream *s, struct channel *res, int an_bit
|
|||
health_adjust(__objt_server(s->target), HANA_STATUS_HTTP_RSP);
|
||||
}
|
||||
stream_inc_http_fail_ctr(s);
|
||||
if (!(s->flags & SF_ERR_MASK))
|
||||
s->flags |= SF_ERR_SRVCL;
|
||||
/* fall through */
|
||||
|
||||
return_error:
|
||||
|
|
|
|||
Loading…
Reference in a new issue