]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-quic: implement recv on io-cb
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 16 May 2022 11:54:59 +0000 (13:54 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 May 2022 13:43:22 +0000 (15:43 +0200)
commit37c2e4a65a3884c9928a7370397b1c03367db8f0
tree4098d515b292296b7730ad06d5ae33af693ce9de
parent73d6ffe832e1f74bc55b68fed2f6ccb86a929f5e
MEDIUM: mux-quic: implement recv on io-cb

Previously, qc_io_cb() of mux-quic only dealt with TX. Add support for
RX in it. This is done through a new function qc_recv(qcc). It loops
over all QCS instances and call qcc_decode_qcs(qcs).

This has no impact from the quic-conn layer as qcc_decode_qcs(qcs) is
called directly. However, this allows to have a resume point when demux
is blocked on the upper layer HTX full buffer.

Note that for the moment, only RX for bidirectional streams is managed
in qc_io_cb(). Unidirectional streams use their own mechanism for both
TX/RX. It should be unified in the near future in a refactoring.
src/mux_quic.c