mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-13 19:00:25 -04:00
MINOR: quic: PTO timer too often reset
It must be reset when the anti-amplication was reached but only if the peer address was not validated.
This commit is contained in:
parent
41a076087b
commit
078634d126
1 changed files with 2 additions and 1 deletions
|
|
@ -621,7 +621,8 @@ static inline void qc_set_timer(struct quic_conn *qc)
|
|||
/* anti-amplification: the timer must be
|
||||
* cancelled for a server which reached the anti-amplification limit.
|
||||
*/
|
||||
if (qc->flags & QUIC_FL_CONN_ANTI_AMPLIFICATION_REACHED) {
|
||||
if (!quic_peer_validated_addr(qc) &&
|
||||
(HA_ATOMIC_LOAD(&qc->flags) & QUIC_FL_CONN_ANTI_AMPLIFICATION_REACHED)) {
|
||||
TRACE_PROTO("anti-amplification reached", QUIC_EV_CONN_STIMER, qc);
|
||||
qc->timer = TICK_ETERNITY;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue