MINOR: logs: Get the multiplexer exist status when no stream is provided
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Oct 2020 13:11:43 +0000 (15:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
commitce5e6bcb0457c8e57fcfc2f958c18c064191c59f
tree4f436159f3858a88b22efeeea4c534487b47ba02
parent4c8ad8423268a059e112cad5080d3061bb8e72f2
MINOR: logs: Get the multiplexer exist status when no stream is provided

When a log message is emitted from the session level, by a multiplexer,
there is no stream. Thus for HTTP session, there no status code and the
termination flags are not correctly set.

Thanks to previous patch, the HTTP status code is deduced from the mux exist
status, using the MUX_EXIT_STATE ctl param. This is only done for HTTP
frontends. If it is defined ( != 0), it is used to deduce the termination
flags.
src/log.c