]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] add the SN_CURR_SESS flag to the session to track open sessions
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Nov 2008 19:20:02 +0000 (20:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Nov 2008 19:26:58 +0000 (20:26 +0100)
commit1e62de615be9a5b03fbd4414ed4082f86da1ced3
tree3d634767c1103706af954fe53b4bb099509fe1c8
parentcff6411f9a815400e0b90f355d29c1f8bcd2f3eb
[MEDIUM] add the SN_CURR_SESS flag to the session to track open sessions

It is quite hard to track when the current session has already been counted
or discounted from the server's total number of established sessions. For
this reason, we introduce a new session flag, SN_CURR_SESS, which indicates
if the current session is one of those reported by the server or not. It
simplifies session accounting and makes it far more robust. It also makes
it possible to perform a last-minute cleanup during session_free().

Right now, with this fix and a few more buffer transitions fixes, no session
were found to remain after a test.
include/types/session.h
src/backend.c
src/proto_http.c
src/session.c