BUG/MINOR: quic: mux started when releasing quic_conn

There are cases where the mux is started before the handshake is completed:
during 0-RTT sessions.

So, it was a bad idea to try to release the quic_conn object from quic_conn_io_cb()
without checking if the mux is started.

No need to backport.
This commit is contained in:
Frédéric Lécaille 2023-08-10 17:15:21 +02:00
parent 54cafa908d
commit 1ab6126ca7

View File

@ -970,7 +970,7 @@ struct task *quic_conn_io_cb(struct task *t, void *context, unsigned int state)
quic_nictx_free(qc);
}
if (qc->flags & QUIC_FL_CONN_CLOSING) {
if ((qc->flags & QUIC_FL_CONN_CLOSING) && qc->mux_state != QC_MUX_READY) {
quic_conn_release(qc);
qc = NULL;
}