MINOR: mux-quic: delay subscribe on recv after 0-RTT

This commit is contained in:
Amaury Denoyelle 2025-02-18 11:53:17 +01:00
parent 1709cfd31d
commit 3fc677c25e

View File

@ -2917,6 +2917,11 @@ static void qcc_wait_for_hs(struct qcc *qcc)
qcc->flags &= ~QC_CF_WAIT_HS;
}
else {
/* subscribe for handshake completion */
conn->xprt->subscribe(conn, conn->xprt_ctx, SUB_RETRY_RECV,
&qcc->wait_event);
}
TRACE_LEAVE(QMUX_EV_QCC_RECV, qcc->conn);
}
@ -3446,9 +3451,6 @@ static int qmux_init(struct connection *conn, struct proxy *prx,
if (!(conn->flags & CO_FL_EARLY_SSL_HS)) {
TRACE_STATE("flag connection with early data", QMUX_EV_QCC_WAKE, conn);
conn->flags |= CO_FL_EARLY_SSL_HS;
/* subscribe for handshake completion */
conn->xprt->subscribe(conn, conn->xprt_ctx, SUB_RETRY_RECV,
&qcc->wait_event);
qcc->flags |= QC_CF_WAIT_HS;
}
}