]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h1: Properly handle tunnel establishments and aborts
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Jan 2021 14:12:30 +0000 (15:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 15:37:14 +0000 (16:37 +0100)
commitdea2474991728f4eedb90f5203a7da1200437fe9
tree1f858ef2cf13c1f77aa6d5eb80eac9cfb74530c2
parent91b21dc8d89ca050e033603de16782454665bcfa
MEDIUM: mux-h1: Properly handle tunnel establishments and aborts

In the same way than the H2 mux, we now bloc data sending on the server side
if a tunnel is not fully established. In addition, if some data are still
pending for a aborted tunnel, an error is triggered and the server
connection is closed.

To do so, we rely on the H1C_F_WAIT_INPUT flag to bloc the output
processing. This patch contributes to fix the tunnel mode between the H1 and
the H2 muxes.
src/mux_h1.c