BUG/MINOR: stream: Don't incr frontend cum_req counter when stream is closed

This counter is already incremented when a new request is received (or if an
error occurred waiting it). So it must not be incremented when the stream is
terminated, at the end of process_strem(). This bug was introduced by the commit
cff0f739e ("MINOR: counters: Review conditions to increment counters from
analysers").

No backport needed.
This commit is contained in:
Christopher Faulet 2020-02-18 11:51:11 +01:00
parent 34b18e4391
commit 0f19e43f2e

View File

@ -2394,7 +2394,6 @@ struct task *process_stream(struct task *t, void *context, unsigned short state)
if (sess->fe->mode == PR_MODE_HTTP) {
_HA_ATOMIC_ADD(&sess->fe->fe_counters.p.http.rsp[n], 1);
_HA_ATOMIC_ADD(&sess->fe->fe_counters.p.http.cum_req, 1);
}
if ((s->flags & SF_BE_ASSIGNED) &&
(s->be->mode == PR_MODE_HTTP)) {