]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Disable splicing only if input data was processed
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jul 2020 13:12:00 +0000 (15:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Jul 2020 12:29:18 +0000 (14:29 +0200)
commit7b7016bf6e69f61074684e9145e1a6784b6a9d03
tree69cd9d4fa0255f74af112ab003c7ae87706aa915
parent0060be9ccfc76f8c6a9c29ce99d18a37d85bcc1d
BUG/MINOR: mux-h1: Disable splicing only if input data was processed

In h1_rcv_buf(), the splicing is systematically disabled if it was previously
enabled. When it happens, if the splicing is enabled it means the channel's
buffer was empty before calling h1_rcv_buf(). Thus, the only reason to disable
the splicing at this step is when some input data have just been processed.

This patch may be backported to 2.1 and 2.0.
src/mux_h1.c