BUG/MINOR: mux-h1: Fix the splicing in TUNNEL mode
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jul 2020 12:51:15 +0000 (14:51 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Jul 2020 12:44:03 +0000 (14:44 +0200)
commitcfb54329854ee8302fea64f2181e3d2fa6c9acb1
tree56e1be2a0e3611a6de7103ab713e6f8363e6d987
parent4cbc30d405b06e7ff1ba6a6f3be58af786af81bc
BUG/MINOR: mux-h1: Fix the splicing in TUNNEL mode

In the commit 17ccd1a35 ("BUG/MEDIUM: connection: add a mux flag to indicate
splice usability"), The CS_FL_MAY_SPLICE flags was added to notify the upper
layer that the mux is able to use the splicing. But this was only done for the
payload in a message, in HTTP_MSG_DATA state. But the splicing is also possible
in TUNNEL mode, in HTTP_MSG_TUNNEL state. In addition, the splicing ability is
always disabled for chunked messages.

This patch must be backported to 2.1 and 2.0.

(cherry picked from commit 2eaf30955f3619e2f262ba948313b8c2cb40ee81)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mux_h1.c