]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: adjust error code in init failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 18 Dec 2023 18:13:09 +0000 (19:13 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 20 Dec 2023 14:27:11 +0000 (15:27 +0100)
commit403492af8e8e369d54d57909bef72b1e4db8e419
treeb643bf1b1a2d29d52697f4016a3305a37c506d8c
parentbcade776c2053e2c2a60301f4a89c93fd1654af1
MINOR: mux-quic: adjust error code in init failure

If QUIC MUX cannot be initialized for any reason, the connection is shut
down with a CONNECTION_CLOSE frame. Previously, no error code was
explicitely specified, resulting in "no error" code.

Change this by always set error code in case of QUIC MUX failure. Use
the already defined QUIC MUX error code or "internal error" if unset.
Call quic_set_connection_close() on error label to register it to the
quic_conn layer.

This should help to improve error reporting in case of MUX
initialization failure.
src/mux_quic.c