mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-28 16:40:37 +00:00
MINOR: quic: Stop emptying the RX buffer asap.
When a packet is present in the RX buffer at the first place but without a null reference counter, there is no need to continue to try to empty the buffer, it is sure the next packet will not be at the first place!
This commit is contained in:
parent
91ac6c3a8a
commit
ccf973f5ef
@ -1083,11 +1083,12 @@ static inline void quic_rx_pkts_del(struct quic_conn *qc)
|
||||
break;
|
||||
}
|
||||
|
||||
if (!HA_ATOMIC_LOAD(&pkt->refcnt)) {
|
||||
b_del(&qc->rx.buf, pkt->raw_len);
|
||||
LIST_DELETE(&pkt->qc_rx_pkt_list);
|
||||
pool_free(pool_head_quic_rx_packet, pkt);
|
||||
}
|
||||
if (HA_ATOMIC_LOAD(&pkt->refcnt))
|
||||
break;
|
||||
|
||||
b_del(&qc->rx.buf, pkt->raw_len);
|
||||
LIST_DELETE(&pkt->qc_rx_pkt_list);
|
||||
pool_free(pool_head_quic_rx_packet, pkt);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user