MINOR: mux-quic: close connection asap on local error
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 May 2023 16:17:19 +0000 (18:17 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 4 May 2023 14:36:51 +0000 (16:36 +0200)
commitd4af04198bad49866442b7d21842030f38d14152
treef3c1c8c1a4e7d9bc1780d597bc79d0a42d7e876c
parent35542ce7bfea72818f27099d5e960347d0d8ae2b
MINOR: mux-quic: close connection asap on local error

With the change for QUIC MUX local error API, the new flag QC_CF_ERRL is
now checked on qc_detach(). If set, qcs instance is freed even though
transfer is not finished. This should help to quickly release qcs and
eventually all MUX instance resources.

To further accelerate this, a specific check has been added in
qc_shutw(). It is skipped if local error flag is set to prevent noisy
reset stream invocation. In the same way, QUIC MUX is not rescheduled on
qc_recv_buf() operation if local error flag set.

This should be backported up to 2.7.
src/mux_quic.c