mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-23 23:28:47 -04:00
MINOR: quic: Drop the packets of discarded packet number spaces
This is required since this previous commit: "MINOR: quic: Post handshake I/O callback switching" If not, such packets remain endlessly in the RX buffer and cannot be parsed by the new I/O callback used after the handshake has been confirmed.
This commit is contained in:
parent
00e2400fa6
commit
51c9065f66
1 changed files with 3 additions and 1 deletions
|
|
@ -3144,8 +3144,10 @@ static int qc_qel_may_rm_hp(struct quic_conn *qc, struct quic_enc_level *qel)
|
|||
tel = ssl_to_quic_enc_level(qel->level);
|
||||
|
||||
/* check if tls secrets are available */
|
||||
if (qel->tls_ctx.rx.flags & QUIC_FL_TLS_SECRETS_DCD)
|
||||
if (qel->tls_ctx.rx.flags & QUIC_FL_TLS_SECRETS_DCD) {
|
||||
TRACE_DEVEL("Discarded keys", QUIC_EV_CONN_TRMHP, qc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(qel->tls_ctx.rx.flags & QUIC_FL_TLS_SECRETS_SET))
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue