mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
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:
parent
34b18e4391
commit
0f19e43f2e
@ -2394,7 +2394,6 @@ struct task *process_stream(struct task *t, void *context, unsigned short state)
|
|||||||
|
|
||||||
if (sess->fe->mode == PR_MODE_HTTP) {
|
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.rsp[n], 1);
|
||||||
_HA_ATOMIC_ADD(&sess->fe->fe_counters.p.http.cum_req, 1);
|
|
||||||
}
|
}
|
||||||
if ((s->flags & SF_BE_ASSIGNED) &&
|
if ((s->flags & SF_BE_ASSIGNED) &&
|
||||||
(s->be->mode == PR_MODE_HTTP)) {
|
(s->be->mode == PR_MODE_HTTP)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user