comparison 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
comparison
equal deleted inserted replaced
9194:a6f79f044de5 9195:ff452f283aa9
179 qc->congestion.window = ngx_min(10 * qc->tp.max_udp_payload_size, 179 qc->congestion.window = ngx_min(10 * qc->tp.max_udp_payload_size,
180 ngx_max(2 * qc->tp.max_udp_payload_size, 180 ngx_max(2 * qc->tp.max_udp_payload_size,
181 14720)); 181 14720));
182 qc->congestion.ssthresh = (size_t) -1; 182 qc->congestion.ssthresh = (size_t) -1;
183 qc->congestion.recovery_start = ngx_current_msec; 183 qc->congestion.recovery_start = ngx_current_msec;
184
185 ngx_quic_init_rtt(qc);
184 } 186 }
185 187
186 path->validated = 1; 188 path->validated = 1;
187 189
188 if (path->mtu_unvalidated) { 190 if (path->mtu_unvalidated) {