Mercurial > hg > nginx
diff src/event/quic/ngx_event_quic_migration.c @ 9195:ff452f283aa9
QUIC: reset RTT estimator for the new path.
RTT is a property of the path, it must be reset on confirming a peer's
ownership of its new address.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 12 Dec 2023 20:20:51 +0400 |
parents | a6f79f044de5 |
children | 6c8595b77e66 |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_migration.c Wed Nov 29 10:58:21 2023 +0400 +++ b/src/event/quic/ngx_event_quic_migration.c Tue Dec 12 20:20:51 2023 +0400 @@ -181,6 +181,8 @@ 14720)); qc->congestion.ssthresh = (size_t) -1; qc->congestion.recovery_start = ngx_current_msec; + + ngx_quic_init_rtt(qc); } path->validated = 1;