]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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:29:18 +0000 (14:29 +0200)
commit2eaf30955f3619e2f262ba948313b8c2cb40ee81
treed9a9299637ebd7913d12bee635ce95904caeec89
parentb4174d5a793a209c8066231ba40c5727626d88fa
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.
src/mux_h1.c