]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: muxes/htx: Handle inplicit upgrades from h1 to h2
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 8 Apr 2019 08:57:20 +0000 (10:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2019 20:06:53 +0000 (22:06 +0200)
commit0ef372a390bafee2a59d0aca9ceeb9ebe9c2a1fe
tree2b37e0a273e7ef4914a62575d04d2f3a131094bc
parentbbe685452fa328fe35ff7c430b228ec2614c9732
MAJOR: muxes/htx: Handle inplicit upgrades from h1 to h2

The upgrade is performed when an H2 preface is detected when the first request
on a connection is parsed. The CS is destroyed by setting EOS flag on it. A
special flag is added on the HTX message to warn the HTX analyzers the stream
will be closed because of an upgrade. This way, no error and no log are
emitted. When the mux h1 is released, we create a mux h2, without any CS and
passing the buffer with the unparsed H2 preface.
include/common/htx.h
src/mux_h1.c
src/proto_htx.c