]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] session: move counter ACL fetches from proto_tcp
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Jun 2010 15:46:06 +0000 (17:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 16:04:12 +0000 (18:04 +0200)
commit8b22a71a4d100847b14e325496d942d4e78fdc97
treec793eb690b596e527fc49fb5a47e104ffd7ce06b
parent8fb12c4b61013a3eeba9ce97ddfdcbe333c8ff40
[MEDIUM] session: move counter ACL fetches from proto_tcp

It was not normal to have counter fetches in proto_tcp.c. The only
reason was that the key based on the source address was fetched there,
but now we have split the key extraction and data processing, we must
move that to a more appropriate place. Session seems OK since the
counters are all manipulated from here.

Also, since we're precisely counting number of connections with these
ACLs, we rename them src_conn_cnt and src_updt_conn_cnt. This is not
a problem right now since no version was emitted with these keywords.
src/proto_tcp.c
src/session.c