From a154dc0290890a0632de0db6e2eb1e9a8aa00fcf Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Mon, 13 Jun 2022 17:09:01 +0200 Subject: [PATCH] MINOR: mux-quic: send one last time before release Call qc_send() on qc_release(). This is mostly useful for application protocol with a connection closing procedure. Most notably, this will be useful to implement HTTP/3 GOAWAY emission. --- src/mux_quic.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mux_quic.c b/src/mux_quic.c index 74f91d90c..ff0b8eab8 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -1601,6 +1601,11 @@ static void qc_release(struct qcc *qcc) * procedure. */ qcc->app_ops->release(qcc->ctx); + + /* useful if application protocol should emit some closing + * frames. For example HTTP/3 GOAWAY frame. + */ + qc_send(qcc); } else { qcc_emit_cc_app(qcc, QC_ERR_NO_ERROR, 0);