mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-14 13:26:24 -04:00
MINOR: quic-be: do not create the mux after handshake completion (for 0-RTT)
This is required during connection with 0-RTT support, to prevent two mux creations. Indeed, for 0-RTT sessions, the QUIC mux is already started very soon from connect_server() (src/backend.c).
This commit is contained in:
parent
d84463f9f6
commit
92d2ab76e0
1 changed files with 8 additions and 6 deletions
|
|
@ -1014,13 +1014,15 @@ int qc_ssl_do_hanshake(struct quic_conn *qc, struct ssl_sock_ctx *ctx)
|
|||
goto err;
|
||||
}
|
||||
|
||||
if (conn_create_mux(qc->conn, NULL) < 0) {
|
||||
TRACE_ERROR("mux creation failed", QUIC_EV_CONN_IO_CB, qc, &state);
|
||||
goto err;
|
||||
}
|
||||
if (!qc_is_conn_ready(qc)) {
|
||||
if (conn_create_mux(qc->conn, NULL) < 0) {
|
||||
TRACE_ERROR("mux creation failed", QUIC_EV_CONN_IO_CB, qc, &state);
|
||||
goto err;
|
||||
}
|
||||
|
||||
/* Wake up MUX after its creation. Operation similar to TLS+ALPN on TCP stack. */
|
||||
qc->conn->mux->wake(qc->conn);
|
||||
/* Wake up MUX after its creation. Operation similar to TLS+ALPN on TCP stack. */
|
||||
qc->conn->mux->wake(qc->conn);
|
||||
}
|
||||
}
|
||||
else {
|
||||
TRACE_PROTO("could not start the mux", QUIC_EV_CONN_IO_CB, qc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue