]> git.kaiwu.me - haproxy.git/commit
MEDIUM: mux-quic: adjust transport layer error handling
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 4 May 2023 16:52:42 +0000 (18:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 May 2023 12:12:48 +0000 (14:12 +0200)
commit5f67b17a5949ce4ff02b84798c62918297fdb92d
tree5936151b69bf6d3ebd5d857f9f715cf5923ae831
parentb2e31d33f55f3ffd690de99a3445722c48894105
MEDIUM: mux-quic: adjust transport layer error handling

Following previous patch, error notification from quic_conn has been
adjusted to rely on standard connection flags. Most notably, CO_FL_ERROR
on the connection instance when a fatal error is detected.

Check for CO_FL_ERROR is implemented by qc_send(). If set the new flag
QC_CF_ERR_CONN will be set for the MUX instance. This flag is similar to
the local error flag and will abort most of the futur processing. To
ensure stream upper layer is also notified, qc_wake_some_streams()
called by qc_process() will put the stream on error if this new flag is
set.

This should be backported up to 2.7.
include/haproxy/mux_quic-t.h
src/mux_quic.c