Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_ack.c @ 9147:58afcd72446f
QUIC: path MTU discovery.
MTU selection starts by doubling the initial MTU until the first failure.
Then binary search is used to find the path MTU.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 14 Aug 2023 09:21:27 +0400 |
parents | 48691bab4474 |
children | c80d111340dc |
comparison
equal
deleted
inserted
replaced
9146:f3412ec3b6d1 | 9147:58afcd72446f |
---|---|
227 ngx_quic_frame_t *f; | 227 ngx_quic_frame_t *f; |
228 ngx_quic_connection_t *qc; | 228 ngx_quic_connection_t *qc; |
229 | 229 |
230 qc = ngx_quic_get_connection(c); | 230 qc = ngx_quic_get_connection(c); |
231 | 231 |
232 if (ctx->level == ssl_encryption_application) { | |
233 if (ngx_quic_handle_path_mtu(c, qc->path, min, max) != NGX_OK) { | |
234 return NGX_ERROR; | |
235 } | |
236 } | |
237 | |
232 st->max_pn = NGX_TIMER_INFINITE; | 238 st->max_pn = NGX_TIMER_INFINITE; |
233 found = 0; | 239 found = 0; |
234 | 240 |
235 q = ngx_queue_head(&ctx->sent); | 241 q = ngx_queue_head(&ctx->sent); |
236 | 242 |