]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-fcgi/trace: Register a new trace source with its events
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Oct 2019 13:21:17 +0000 (15:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Oct 2019 14:12:02 +0000 (16:12 +0200)
commit5c0f859c27264a844d6303ab0fff110cc83f4b9c
treef73720be73fad02be066ab383c4f562453b59a6a
parentc5a3eb4e3adc1a8c4a3645b3d2f26d915c00b344
MINOR: mux-fcgi/trace: Register a new trace source with its events

As for the mux h1 and h2, traces are now supported in the mux fcgi. All parts of
the multiplexer is covered by these traces. Events are splitted by categories
(fconn, fstrm, stream, rx, tx and rsp) for a total of ~40 different events with
5 verboisty levels.

In traces, the first argument is always a connection. So it is easy to get the
fconn (conn->ctx). The second argument is always a fstrm. The third one is an
HTX message. Depending on the context it is the request or the response. In all
cases it is owned by a channel. Finally, the fourth argument is an integer
value. Its meaning depends on the calling context.
src/mux_fcgi.c