summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_migration.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2023-12-12 20:20:51 +0400
committerSergey Kandaurov <pluknet@nginx.com>2023-12-12 20:20:51 +0400
commit4ee2a48f3f230b0efe80ff84bd58d7ab209a46a9 (patch)
treefda8285aec918c85453a268741cc917869b1c57a /src/event/quic/ngx_event_quic_migration.c
parentc1efb3a725c189dc0f011753561bf34ff650d773 (diff)
downloadnginx-4ee2a48f3f230b0efe80ff84bd58d7ab209a46a9.tar.gz
nginx-4ee2a48f3f230b0efe80ff84bd58d7ab209a46a9.tar.bz2
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.
Diffstat (limited to 'src/event/quic/ngx_event_quic_migration.c')
-rw-r--r--src/event/quic/ngx_event_quic_migration.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_migration.c b/src/event/quic/ngx_event_quic_migration.c
index be8e0e304..58f3fc545 100644
--- a/src/event/quic/ngx_event_quic_migration.c
+++ b/src/event/quic/ngx_event_quic_migration.c
@@ -181,6 +181,8 @@ valid:
14720));
qc->congestion.ssthresh = (size_t) -1;
qc->congestion.recovery_start = ngx_current_msec;
+
+ ngx_quic_init_rtt(qc);
}
path->validated = 1;