aboutsummaryrefslogtreecommitdiff
path: root/src/event/quic/ngx_event_quic.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.c
parentc1efb3a725c189dc0f011753561bf34ff650d773 (diff)
downloadnginx-4ee2a48f3f230b0efe80ff84bd58d7ab209a46a9.tar.gz
nginx-4ee2a48f3f230b0efe80ff84bd58d7ab209a46a9.zip
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.c')
-rw-r--r--src/event/quic/ngx_event_quic.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c
index b0cf056c1..4687c849e 100644
--- a/src/event/quic/ngx_event_quic.c
+++ b/src/event/quic/ngx_event_quic.c
@@ -260,14 +260,7 @@ ngx_quic_new_connection(ngx_connection_t *c, ngx_quic_conf_t *conf,
ngx_queue_init(&qc->free_frames);
- qc->avg_rtt = NGX_QUIC_INITIAL_RTT;
- qc->rttvar = NGX_QUIC_INITIAL_RTT / 2;
- qc->min_rtt = NGX_TIMER_INFINITE;
- qc->first_rtt = NGX_TIMER_INFINITE;
-
- /*
- * qc->latest_rtt = 0
- */
+ ngx_quic_init_rtt(qc);
qc->pto.log = c->log;
qc->pto.data = c;