From be20cf36af96da357375812e6f825bcdf24dc3d1 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 24 Jan 2020 11:41:38 +0100 Subject: [PATCH] BUG/MINOR: http-ana: Increment the backend counters on the backend A stupid cut-paste bug was introduced in the commit cff0f739e51. Backend counters must of course be incremented on the stream's backend. Not the frontend. No need to backport this patch, except if commit cff0f739e51 is backported. --- src/http_ana.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http_ana.c b/src/http_ana.c index 25110f18c..41df0618e 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -938,7 +938,7 @@ int http_process_request(struct stream *s, struct channel *req, int an_bit) s->flags |= SF_ERR_INTERNAL; _HA_ATOMIC_ADD(&sess->fe->fe_counters.internal_errors, 1); if (s->flags & SF_BE_ASSIGNED) - _HA_ATOMIC_ADD(&sess->fe->be_counters.internal_errors, 1); + _HA_ATOMIC_ADD(&s->be->be_counters.internal_errors, 1); if (sess->listener->counters) _HA_ATOMIC_ADD(&sess->listener->counters->internal_errors, 1); goto return_prx_cond; @@ -1100,7 +1100,7 @@ int http_wait_for_request_body(struct stream *s, struct channel *req, int an_bit s->flags |= SF_ERR_INTERNAL; _HA_ATOMIC_ADD(&sess->fe->fe_counters.internal_errors, 1); if (s->flags & SF_BE_ASSIGNED) - _HA_ATOMIC_ADD(&sess->fe->be_counters.internal_errors, 1); + _HA_ATOMIC_ADD(&s->be->be_counters.internal_errors, 1); if (sess->listener->counters) _HA_ATOMIC_ADD(&sess->listener->counters->internal_errors, 1); goto return_prx_cond;