]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: logs: Use session idle duration when no stream is provided
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2020 13:10:07 +0000 (15:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:48 +0000 (14:41 +0100)
commitdd78921c66ea1440676b06200064c9a27f82c50d
treed9969bd04c9280fed3b0a8d79f05c32762d06979
parent42849b047a6d183985b2c12a0ebab18704ebf9f6
MINOR: logs: Use session idle duration when no stream is provided

When a log message is emitted from the session, using sess_log() function,
there is no stream available. In this case, instead of deducing the idle
duration from the accept date, we use the one provided by the session. 0 is
used if it is undefined (i.e set to -1).
src/log.c