MINOR: stream-int: Notify mux when the buffer is not stuck when calling rcv_buf
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Sep 2021 13:50:55 +0000 (15:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Sep 2021 14:25:47 +0000 (16:25 +0200)
commit564e39c4c602a7ec0196e257732957bbfc3cbcae
tree3c7330fb7240226f12482103a2cce715202feb87
parent2bc364c19105c12dc1dd6b043e81c48b184d4174
MINOR: stream-int: Notify mux when the buffer is not stuck when calling rcv_buf

The transient flag CO_RFL_BUF_NOT_STUCK should now be set when the mux's
rcv_buf() function is called, in si_cs_recv(), to be sure the mux is able to
perform some optimisation during data copy. This flag is set when we are
sure the channel buffer is not stuck. Concretely, it happens when there are
data scheduled to be sent.

It is not a fix and this flag is not used for now. But it makes sense to have
this info to be sure to be able to do some optimisations if necessary.

This patch is related to the issue #1362. It may be backported to 2.4 to
ease future backports.
include/haproxy/connection-t.h
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/stream_interface.c