From 4031bf743255ce2317b856316d288848cb173d16 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Wed, 28 May 2025 11:26:08 +0200 Subject: [PATCH] MINOR: quic: wakeup backend MUX on handshake completed This commit is the second and final step to initiate QUIC MUX on the backend side. On handshake completion, MUX is woken up just after its creation. This step is necessary to notify the stream layer, via the QCS instance pre-initialized on MUX init, so that the transfer can be resumed. This mode of operation is similar to TCP stack when TLS+ALPN are used, which forces MUX initialization to be delayed after handshake completion. --- src/quic_ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/quic_ssl.c b/src/quic_ssl.c index 120684f0a..3341e03cb 100644 --- a/src/quic_ssl.c +++ b/src/quic_ssl.c @@ -975,6 +975,8 @@ static int qc_ssl_provide_quic_data(struct ncbuf *ncbuf, goto leave; } + /* Wake up MUX after its creation. Operation similar to TLS+ALPN on TCP stack. */ + ctx->conn->mux->wake(ctx->conn); qc->mux_state = QC_MUX_READY; }