BUG/MINOR: quic: Wrong RTT adjusments

There was a typo in the test statement to check if the rtt must be adjusted
(>= incorectly replaced by >).

Must be backported as far as 2.6.
This commit is contained in:
Frdric Lcaille 2023-09-05 13:59:09 +02:00 committed by Willy Tarreau
parent 6bc00a97da
commit cf768f7456

View File

@ -35,7 +35,7 @@ void quic_loss_srtt_update(struct quic_loss *ql,
ql->rtt_min = QUIC_MIN(rtt, ql->rtt_min);
/* Specific to QUIC (RTT adjustment). */
if (ack_delay && rtt > ql->rtt_min + ack_delay)
if (ack_delay && rtt >= ql->rtt_min + ack_delay)
rtt -= ack_delay;
diff = (ql->srtt >> 3) - rtt;
if (diff < 0)