MINOR: quic-be: Prevent the MUX to send/receive data
Such actions must be interrupted until the handshake completion.
This commit is contained in:
parent
3afe646523
commit
61454f5a52
@ -155,8 +155,13 @@ static int qc_xprt_start(struct connection *conn, void *ctx)
|
|||||||
qc = conn->handle.qc;
|
qc = conn->handle.qc;
|
||||||
TRACE_ENTER(QUIC_EV_CONN_NEW, qc);
|
TRACE_ENTER(QUIC_EV_CONN_NEW, qc);
|
||||||
|
|
||||||
/* mux-quic can now be considered ready. */
|
if (objt_listener(conn->target)) {
|
||||||
qc->mux_state = QC_MUX_READY;
|
/* mux-quic can now be considered ready. */
|
||||||
|
qc->mux_state = QC_MUX_READY;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
conn->flags |= CO_FL_SSL_WAIT_HS | CO_FL_WAIT_L6_CONN;
|
||||||
|
}
|
||||||
|
|
||||||
/* Schedule quic-conn to ensure post handshake frames are emitted. This
|
/* Schedule quic-conn to ensure post handshake frames are emitted. This
|
||||||
* is not done for 0-RTT as xprt->start happens before handshake
|
* is not done for 0-RTT as xprt->start happens before handshake
|
||||||
|
Loading…
x
Reference in New Issue
Block a user