BUG/MEDIUM: stream: Be sure to support splicing at the mux level to enable it
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Nov 2019 15:49:23 +0000 (16:49 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Nov 2019 09:14:32 +0000 (10:14 +0100)
commit276c1e0533e77008445d57a1953f1f516d66877d
treec087903d0d90c709c9243808362816539868202d
parent9fa40c46df5f52692fe62be008131f8dfa4d83af
BUG/MEDIUM: stream: Be sure to support splicing at the mux level to enable it

Despite the addition of the mux layer, no change have been made on how to enable
the TCP splicing on process_stream(). We still check if transport layer on both
sides support the splicing, but we don't check the muxes support. So it is
possible to start to splice data with an unencrypted H2 connection on a side and
an H1 connection on the other. This leads to a freeze of the stream until a
client or server timeout is reached.

This patch fixed a part of the issue #356. It must be backported as far as 1.8.
src/stream.c