]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] session-counters: correctly unbind the counters tracked by the backend
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Aug 2010 18:11:05 +0000 (20:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 16:04:16 +0000 (18:04 +0200)
commit0a4838cd31cd3dbb1078f78061a532ad0e519f3b
treef904315c9f7ce73e27503b7541cc6a32f1c49f1e
parent56123282ef80d2b9b0a1312e2c70caf4a52ef2f1
[MEDIUM] session-counters: correctly unbind the counters tracked by the backend

In case of HTTP keepalive processing, we want to release the counters tracked
by the backend. Till now only the second set of counters was released, while
it could have been assigned by the frontend, or the backend could also have
assigned the first set. Now we reuse to unused bits of the session flags to
mark which stick counters were assigned by the backend and to release them as
appropriate.
include/proto/session.h
include/types/session.h
src/proto_tcp.c