]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2/trace: Fix traces on h2c initialization
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Oct 2019 13:19:43 +0000 (15:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Oct 2019 13:46:59 +0000 (15:46 +0200)
commitf81ef0344ea66701d0b729de17cb061a10e2f1b9
tree01c4759d7b38817e40eb4a4b0379216ebbfe39c0
parent5a4fe5a35d544579586672c46f8afe4114589d91
BUG/MINOR: mux-h2/trace: Fix traces on h2c initialization

When a new H2 connection is initialized, the connection context is not changed
before the end. So, traces emitted during this initialization are buggy, except
the last one when no error occurred, because the connection context is not an
h2c.

To fix the bug, the connection context is saved and set as soon as possible. So,
the connection can always safely be used in all traces, except for the very
first one. And on error, the connection context is restored.

No need to backport.
src/mux_h2.c