mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-13 19:00:25 -04:00
MINOR: quic: Wrong packet number space selection in quic_loss_pktns()
Ensure the tick is set for a packet number space loss time before selecting it.
This commit is contained in:
parent
d7d549c9b0
commit
c7c8764145
1 changed files with 3 additions and 2 deletions
|
|
@ -110,9 +110,10 @@ static inline struct quic_pktns *quic_loss_pktns(struct quic_conn *qc)
|
|||
|
||||
pktns = &qc->pktns[QUIC_TLS_PKTNS_INITIAL];
|
||||
TRACE_PROTO("pktns", QUIC_EV_CONN_SPTO, qc->conn, pktns);
|
||||
for (i = QUIC_TLS_PKTNS_01RTT; i < QUIC_TLS_PKTNS_MAX; i++) {
|
||||
for (i = QUIC_TLS_PKTNS_HANDSHAKE; i < QUIC_TLS_PKTNS_MAX; i++) {
|
||||
TRACE_PROTO("pktns", QUIC_EV_CONN_SPTO, qc->conn, &qc->pktns[i]);
|
||||
if (qc->pktns[i].tx.loss_time < pktns->tx.loss_time)
|
||||
if (tick_isset(pktns->tx.loss_time) &&
|
||||
qc->pktns[i].tx.loss_time < pktns->tx.loss_time)
|
||||
pktns = &qc->pktns[i];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue