]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: support app graceful shutdown
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 Jul 2022 13:15:58 +0000 (15:15 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 15 Jul 2022 13:06:59 +0000 (15:06 +0200)
commitd666d740d206b1fde607fd6ca6097fd7bf9c11bd
treeb1627220a002e0357bea83a94b1ec10f841c026d
parent57e6db7021483f2cd4e903397cb4ad9890d0719e
MINOR: mux-quic: support app graceful shutdown

Adjust qcc_emit_cc_app() to allow the delay of emission of a
CONNECTION_CLOSE. This will only set the error code but the quic-conn
layer is not flagged for immediate close. The quic-conn will be
responsible to shut the connection when deemed suitable.

This change will allow to implement application graceful shutdown, such
as HTTP/3 with GOAWAY emission. This will allow to emit closing frames
on MUX release. Once all work is done at the lower layer, the quic-conn
should emit a CONNECTION_CLOSE with the registered error code.
include/haproxy/mux_quic.h
src/h3.c
src/mux_quic.c