]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1/trace: register a new trace source with its events
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Oct 2019 20:08:43 +0000 (22:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Oct 2019 14:11:57 +0000 (16:11 +0200)
commit6b81df72767891af5afb2b846420fe7ab3656550
tree1c56ea81494ebb6ca5f226039e3a47392892dcf4
parent27aa65ecfb542956f43fbb9e177b64ab21e5c3e6
MINOR: mux-h1/trace: register a new trace source with its events

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

In traces, the first argument is always a connection. So it is easy to get the
h1c (conn->ctx). The second argument is always a h1s. 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_h1.c