mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
MINOR: quic: Release asap quic_conn memory (application level)
Add a check to the QUIC packet handler running at application level (after the handshake is complete) to release the quic_conn memory calling quic_conn_release(). This is done only if the mux is not started.
This commit is contained in:
parent
9f7cfb0a56
commit
b930ff03d6
@ -743,6 +743,11 @@ struct task *quic_conn_app_io_cb(struct task *t, void *context, unsigned int sta
|
||||
}
|
||||
|
||||
out:
|
||||
if ((qc->flags & QUIC_FL_CONN_CLOSING) && qc->mux_state != QC_MUX_READY) {
|
||||
quic_conn_release(qc);
|
||||
qc = NULL;
|
||||
}
|
||||
|
||||
TRACE_LEAVE(QUIC_EV_CONN_IO_CB, qc);
|
||||
return t;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user