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.
This commit is contained in:
Amaury Denoyelle 2025-05-28 11:26:08 +02:00
parent 1efaca8a57
commit 4031bf7432

View File

@ -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;
}