]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: send one last time before release
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 13 Jun 2022 15:09:01 +0000 (17:09 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 15 Jul 2022 13:56:13 +0000 (15:56 +0200)
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

index 74f91d90c0b4a0b20b42a5d03a8752280b85caa5..ff0b8eab8619f6aa315ff49b7ae51bdc1b289999 100644 (file)
@@ -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);