mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-29 10:11:49 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue