mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02: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
@ -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 New Issue
Block a user