mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-08 08:07:10 +02:00
BUG/MINOR: quic: Possible wrong PTO computing
As timestamps based on now_ms values are used to compute the probing timeout, they may wrap. So, use ticks API to compared them. Must be backported to 2.7 and 2.6.
This commit is contained in:
parent
fdb1494985
commit
0222cc6366
@ -128,7 +128,7 @@ struct quic_pktns *quic_pto_pktns(struct quic_conn *qc,
|
||||
|
||||
p = &qc->pktns[i];
|
||||
tmp_pto = tick_add(p->tx.time_of_last_eliciting, duration);
|
||||
if (!tick_isset(lpto) || tmp_pto < lpto) {
|
||||
if (!tick_isset(lpto) || tick_is_lt(tmp_pto, lpto)) {
|
||||
lpto = tmp_pto;
|
||||
pktns = p;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user