]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-quic: report CO_FL_ERROR on send
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 6 Apr 2022 14:13:09 +0000 (16:13 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Apr 2022 08:35:34 +0000 (10:35 +0200)
commitd97fc804f94ad47f8487259cfee17d547825e579
tree35141efdab4d86b11d9523722a5ef60f6ed4fdba
parentc933780f1e817410e828650cbcdbe582c3e6f978
MEDIUM: mux-quic: report CO_FL_ERROR on send

Mark the connection with CO_FL_ERROR on qc_send() if the socket Tx is
closed. This flag is used by the upper layer to order a close on the
MUX. This requires to check CO_FL_ERROR in qcc_is_dead() to process to
immediate MUX free when set.

The qc_wake() callback has been completed. Most notably, it now calls
qc_send() to report a possible CO_FL_ERROR. This is useful because
qc_wake() is called by the quic-conn on imminent closing.

Note that for the moment the error flag can never be set because the
quic-conn does not report when the Tx socket is closed. This will be
implemented in a following patch.
src/mux_quic.c