MINOR: mux-h2: Add 2 flags to help to properly handle tunnel mode
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Jan 2021 10:46:30 +0000 (11:46 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 15:37:14 +0000 (16:37 +0100)
commitd0db42326dec2e4ec906e84cb4c6d7a525eb805f
treecb182548a02d20f89afec4555b82dfb5a8b26ac3
parentb385b50fbb2252af09097bc8a00d9d2371f6a70c
MINOR: mux-h2: Add 2 flags to help to properly handle tunnel mode

H2_SF_BODY_TUNNEL and H2_SF_TUNNEL_ABRT flags are added to properly handle
the tunnel mode in the H2 mux. The first one is used to detect tunnel
establishment or fully established tunnel. The second one is used to abort a
tunnel attempt. It is the first commit having as a goal to fix tunnel
establishment between H1 and H2 muxes.

There is a subtlety in h2_rcv_buf(). CS_FL_EOS flag is added on the
conn-stream when ES is received on a tunneled stream. It really reflects the
conn-stream state and is mandatory for next commits.
src/h2.c
src/mux_h2.c