diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2023-12-12 20:20:51 +0400 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2023-12-12 20:20:51 +0400 |
| commit | 4ee2a48f3f230b0efe80ff84bd58d7ab209a46a9 (patch) | |
| tree | fda8285aec918c85453a268741cc917869b1c57a /src/event/quic/ngx_event_quic_migration.c | |
| parent | c1efb3a725c189dc0f011753561bf34ff650d773 (diff) | |
| download | nginx-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.c | 2 |
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; |
