BUG/MEDIUM: stconn: Report send activity during mux-to-mux fast-forward
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 31 Oct 2023 12:43:21 +0000 (13:43 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Nov 2023 09:30:01 +0000 (10:30 +0100)
commit141b489291da59264f9300a9a764f663c5f7470d
treed46d6ee42d126cf30b7db4088208463c488854a1
parentd7eaa0d5538283a81f87ed4296ed8dd4e93445e5
BUG/MEDIUM: stconn: Report send activity during mux-to-mux fast-forward

When data are directly forwarded from a mux to the opposite one, we must not
forget to report send activity when data are successfully sent or report a
blocked send with data are blocked. It is important because otherwise, if
the transfer is quite long, longer than the client or server timeout, an
error may be triggered because the write timeout is reached.

H1, H2 and PT muxes are concerned. To fix the issue, The done_fastword()
callback now returns the amount of data consummed. This way it is possible
to update/reset the FSB data accordingly.

No backport needed.
include/haproxy/connection-t.h
include/haproxy/stconn.h
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c