Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic.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 | 4ccb0d973206 |
children | da400acf3756 |
comparison
equal
deleted
inserted
replaced
9194:a6f79f044de5 | 9195:ff452f283aa9 |
---|---|
258 qc->send_ctx[1].level = ssl_encryption_handshake; | 258 qc->send_ctx[1].level = ssl_encryption_handshake; |
259 qc->send_ctx[2].level = ssl_encryption_application; | 259 qc->send_ctx[2].level = ssl_encryption_application; |
260 | 260 |
261 ngx_queue_init(&qc->free_frames); | 261 ngx_queue_init(&qc->free_frames); |
262 | 262 |
263 qc->avg_rtt = NGX_QUIC_INITIAL_RTT; | 263 ngx_quic_init_rtt(qc); |
264 qc->rttvar = NGX_QUIC_INITIAL_RTT / 2; | |
265 qc->min_rtt = NGX_TIMER_INFINITE; | |
266 qc->first_rtt = NGX_TIMER_INFINITE; | |
267 | |
268 /* | |
269 * qc->latest_rtt = 0 | |
270 */ | |
271 | 264 |
272 qc->pto.log = c->log; | 265 qc->pto.log = c->log; |
273 qc->pto.data = c; | 266 qc->pto.data = c; |
274 qc->pto.handler = ngx_quic_pto_handler; | 267 qc->pto.handler = ngx_quic_pto_handler; |
275 | 268 |