]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2/trace: add the default decoding callback
authorWilly Tarreau <w@1wt.eu>
Mon, 19 Aug 2019 15:56:27 +0000 (17:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 29 Aug 2019 16:19:11 +0000 (18:19 +0200)
commitdb3cfff200e5465824641f0a4a4ee0f19b3ab76f
tree542f7e62a09c77c7adcaf048e9e4af8f317bb647
parent12ae21283777c8a6f696fc448058b23740e8c4b6
MINOR: mux-h2/trace: add the default decoding callback

The new function h2_trace() is called when relevant by the trace subsystem
in order to provide extra information about the trace being produced. It
can for example display the connection pointer, the stream pointer, etc.
It is declared in the trace source as the default callback as we expect
it to be versatile enough to enrich most traces.

In addition, for requests and responses, if we have a buffer and we can
decode it as an HTX buffer, we can extract user-friendly information from
the start line.
src/mux_h2.c