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:44:03 +0000 (14:44 +0200)
commit07c7c837a9a909c7381435f87ad67fba6cebd808
tree684a0ad032a7cbad3c2adb96ce07dc95fc13beda
parentb032bf949dd75671aed25e2472704556cf752e2b
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.

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