mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-17 02:56:51 +00:00
BUG/MAJOR: quic: Useless resource intensive loop qc_ackrng_pkts()
This usless loop should have been removed a long time ago. As it is CPU resource intensive, it could trigger the watchdog. Must be backported to 2.6.
This commit is contained in:
parent
dc591cd6cb
commit
843399fd45
@ -1602,15 +1602,7 @@ static inline struct eb64_node *qc_ackrng_pkts(struct quic_conn *qc,
|
||||
struct eb64_node *node;
|
||||
struct quic_tx_packet *pkt;
|
||||
|
||||
if (largest_node)
|
||||
node = largest_node;
|
||||
else {
|
||||
node = eb64_lookup(pkts, largest);
|
||||
while (!node && largest > smallest) {
|
||||
node = eb64_lookup(pkts, --largest);
|
||||
}
|
||||
}
|
||||
|
||||
node = largest_node ? largest_node : eb64_lookup_le(pkts, largest);
|
||||
while (node && node->key >= smallest) {
|
||||
struct quic_frame *frm, *frmbak;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user