]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: also support retrieving fc.timer.handshake without a stream
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Jan 2026 14:13:42 +0000 (15:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Jan 2026 14:48:19 +0000 (15:48 +0100)
commit880bbeeda4b70deee430743dd16d3171e7d319b5
tree46a7cf95e42e9baba339f3a2bcee203a1c100209
parent875bbaa7fc2986e1c0c026b2819f2d2c4d423cca
MINOR: sample: also support retrieving fc.timer.handshake without a stream

Some timers, like the handshake timer, are stored in the session and are
only copied to the logs struct when a stream is created. But this means
we can't measure it without a stream, nor store it once for all in a
variable at session creation time. Let's extend the sample fetch function
to retrieve it from the session when no stream is present. The doc did not
mention this limitation so this could almost be considered as a bug.
src/sample.c