]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: Expose session terminate state via a new sample fetch
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Nov 2023 07:45:33 +0000 (08:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Nov 2023 10:11:12 +0000 (11:11 +0100)
commit8f565528623d2084a4bc96d5b80c2d55639b10a0
tree2605f86acd2c6b52cefa1a67835cd760ebbc35b8
parent0fd25514d65dadbe62867c8b354115c377c87db0
MINOR: stream: Expose session terminate state via a new sample fetch

It is now possible to retrieve the session terminate state, using
"txn.sess_term_state". The sample fetch returns the 2-character session
termation state.

Of course, the result of this sample fetch is volatile. It is subject to
change. It is also most of time useless because no termation state is set
except at the end. It should only be useful in http-after-response rule
sets. It may also be used to customize the logs using a log-format
directive.

This patch should fix the issue #2221.
doc/configuration.txt
include/haproxy/log.h
src/stream.c