]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: Don't pretend mux buffers aren't full anymore if nothing sent
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Oct 2019 08:31:01 +0000 (10:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Sat, 26 Oct 2019 06:24:45 +0000 (08:24 +0200)
commit69fe5cea213afd0c7465094e9dfead93143dcf3f
tree2bb680cd8fc0e53d9a01a7ec88cded9d29f77c9a
parent90b098c921e15f912dbde42658e34780f0ba446d
BUG/MINOR: mux-h2: Don't pretend mux buffers aren't full anymore if nothing sent

In h2_send(), when something is sent, we remove the flags
(H2_CF_MUX_MFULL|H2_CF_DEM_MROOM) on the h2 connection. This way, we are able to
wake up all streams waiting to send data. Unfortunatly, these flags are
unconditionally removed, even when nothing was sent. So if the h2c is blocked
because the mux buffers are full and we are unable to send anything, all streams
in the send_list are woken up for nothing. Now, we only remove these flags if at
least a send succeeds.

This patch must be backport to 2.0.
src/mux_h2.c