MINOR: mux-h1: Always subscribe for reads when splicing is disabled
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Apr 2021 09:58:49 +0000 (11:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 May 2021 07:21:00 +0000 (09:21 +0200)
commit94d35108b48b97b578024c97ec4a4840441cbcfc
tree089b61fc558098bb80a2434bfe852dfd30474707
parent8454f2dbbc0bf4d9e307e9a0269a3de7413fd49a
MINOR: mux-h1: Always subscribe for reads when splicing is disabled

In h1_rcv_pipe(), when the splicing is not possible or disabled at the end
of the fnuction, we make sure to subscribe for reads. It is not a bug but it
avoid an extra call to h1_rcv_pipe() to handle the subscription in some
cases (end of message, end of chunk or read0).

In addition, the condition to detect end of splicing has been simplified. We
now only rely on H1C_F_WANT_SPLICE flags.
src/mux_h1.c