]> git.kaiwu.me - haproxy.git/commit
[MINOR] session: add the trk_conn_cnt ACL keyword to track connection counts
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Jun 2010 17:53:25 +0000 (19:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 16:04:12 +0000 (18:04 +0200)
commit9a3f849371d1739fac5a922af0d90db1b192085c
tree8802e469365c2efdef2921a60ab14ce8c3ab1c17
parent855e4bbcc7783ec6e98076646add557fe4f3bef3
[MINOR] session: add the trk_conn_cnt ACL keyword to track connection counts

Most of the time we'll want to check the connection count of the
criterion we're currently tracking. So instead of duplicating the
src* tests, let's add trk_conn_cnt to report the total number of
connections from the stick table entry currently being tracked.

A nice part of the code was factored, and we should do the same
for the other criteria.
src/session.c