BUG/MINOR: mux-h1: Be sure to swap H1C to splice mode when rcv_pipe() is called
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Jul 2021 08:49:39 +0000 (10:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Jul 2021 13:14:35 +0000 (15:14 +0200)
commitcf30756f0c92084be7783f7865ad2d5dcbf80e70
treee4fc3a28a9b43873a73c3ae15c2be9ad1cabacdd
parent3f35da296ee30bba3783f343a586091c66f21c65
BUG/MINOR: mux-h1: Be sure to swap H1C to splice mode when rcv_pipe() is called

The splicing does not work anymore because the H1 connection is not swap to
splice mode when rcv_pipe() callback function is called. It is important to
set H1C_F_WANT_SPLICE flag to inhibit data receipt via the buffer
API. Otherwise, because there are always data in the buffer, it is not
possible to use the kernel splicing.

This bug was introduced by the commit 2b861bf72 ("MINOR: mux-h1: clean up
conditions to enabled and disabled splicing").

The patch must be backported to 2.4.
src/mux_h1.c