]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: stats: last session was not always set
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 22:35:17 +0000 (00:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 22:35:17 +0000 (00:35 +0200)
commitb9a551e6aaf1e644f0d447c6e0519558c0efd7b1
treee9f1f6284fa82c4480b66d494259634ed0a66a5c
parent62ba870f520abfeda0ce6515ab38751fa785c14e
BUG/MINOR: stats: last session was not always set

Cyril Bonté reported that the "lastsess" field of a stats-only backend
was never updated. In fact the same is true for any applet and anything
not a server. Also, lastsess was not updated for a server reusing its
connection for a new request.

Since the goal of this field is to report recent activity, it's better
to ensure that all accesses are reported. The call has been moved to
the code validating the session establishment instead, since everything
passes there.
src/backend.c
src/session.c