Mercurial > hg > nginx
diff src/event/quic/ngx_event_quic_ssl.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 | 7da4791e0264 |
children | 2880f60a80c3 |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_ssl.c Tue Aug 08 10:43:17 2023 +0400 +++ b/src/event/quic/ngx_event_quic_ssl.c Mon Aug 14 09:21:27 2023 +0400 @@ -494,6 +494,8 @@ */ ngx_quic_discard_ctx(c, ssl_encryption_handshake); + ngx_quic_discover_path_mtu(c, qc->path); + /* start accepting clients on negotiated number of server ids */ if (ngx_quic_create_sockets(c) != NGX_OK) { return NGX_ERROR;