]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] session: add concurrent connections counter
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Jun 2010 14:35:43 +0000 (16:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 16:04:12 +0000 (18:04 +0200)
commit38285c18f44c44b235d450fdbc6fa5c89b71fa0c
treec600c438c5b8719cd1e2c624dbb053a254650656
parent8b22a71a4d100847b14e325496d942d4e78fdc97
[MEDIUM] session: add concurrent connections counter

The new "conn_cur" session counter has been added. It is automatically
updated upon "track XXX" directives, and the entry is touched at the
moment we increment the value so that we don't consider further counter
updates as real updates, otherwise we would end up updating upon completion,
which may not be desired. Probably that some other event counters (eg: HTTP
requests) will have to be updated upon each event though.

This counter can be matched against current session's source address using
the "src_conn_cur" ACL.
include/proto/session.h
include/types/stick_table.h
src/session.c
src/stick_table.c