]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: session: count the frontend's connections at a single place
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 08:25:14 +0000 (10:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 09:49:52 +0000 (11:49 +0200)
commit0bf6fa5e40f75456880ec5e235c6d2c8264b2df5
tree768bec53c397d23d01eac6cd93f423ebfef9440f
parent0c4ed35225080118466e574ff310c8b37a308496
MEDIUM: session: count the frontend's connections at a single place

There are several places where we see feconn++, feconn--, totalconn++ and
an increment on the frontend's number of connections and connection rate.
This is done exactly once per session in each direction, so better take
care of this counter in the session and simplify the callers. At least it
ensures a better symmetry. It also ensures consistency as till now the
lua/spoe/peers frontend didn't have these counters properly set, which can
be useful at least for troubleshooting.
src/flt_spoe.c
src/hlua.c
src/listener.c
src/peers.c
src/session.c
src/stream.c