mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 17:32:03 -04:00
BUG/MINOR: http-ana: increment internal_errors counter on response error
A bug was introduced in the commitcff0f739e5("MINOR: counters: Review conditions to increment counters from analysers"). The internal_errors counter for the target server was incremented twice. The counter for the session listener needs to be incremented instead. This must be backported everywhere the commitcff0f739e5is.
This commit is contained in:
parent
564e39c4c6
commit
9a006f9641
1 changed files with 2 additions and 2 deletions
|
|
@ -2009,8 +2009,8 @@ int http_process_res_common(struct stream *s, struct channel *rep, int an_bit, s
|
|||
s->flags |= SF_ERR_INTERNAL;
|
||||
_HA_ATOMIC_INC(&sess->fe->fe_counters.internal_errors);
|
||||
_HA_ATOMIC_INC(&s->be->be_counters.internal_errors);
|
||||
if (objt_server(s->target))
|
||||
_HA_ATOMIC_INC(&__objt_server(s->target)->counters.internal_errors);
|
||||
if (sess->listener && sess->listener->counters)
|
||||
_HA_ATOMIC_INC(&sess->listener->counters->internal_errors);
|
||||
if (objt_server(s->target))
|
||||
_HA_ATOMIC_INC(&__objt_server(s->target)->counters.internal_errors);
|
||||
goto return_prx_err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue