MINOR: quic: Wake up the xprt from mux
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 20 Sep 2021 15:58:22 +0000 (17:58 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commit8526f14acd4f240d52d3cf7bc90858f6e305d12a
treef2beb27550ca7a117cf75b5435a28fd19a2e472e
parent1d40240f257a7a0f361db49f8de0578f9bab0750
MINOR: quic: Wake up the xprt from mux

We wake up the xprt as soon as STREAM frames have been pushed to
the TX mux buffer (->tx.buf).
We also make the mux subscribe() to the xprt layer if some data
remain in its ring buffer after having try to transfer them to the
xprt layer (TX mux buffer for the stream full).
Also do not consider a buffer in the ring if not allocated (see b_size(buf))
condition in the for(;;) loop.
Make a call to qc_process_mux() if possible when entering qc_send() to
fill the mux with data from streams in the send or flow control lists.
src/mux_quic.c