summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_ssl.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2023-08-14 09:21:27 +0400
committerRoman Arutyunyan <arut@nginx.com>2023-08-14 09:21:27 +0400
commiteeb8a9f56f727d2543c8ae7feae0de784e329b27 (patch)
treea3b6dbde4411df979e93ca7df075cb15a5156850 /src/event/quic/ngx_event_quic_ssl.c
parent58fc5e2830a0fa70810005ca03fdb9a531719696 (diff)
downloadnginx-eeb8a9f56f727d2543c8ae7feae0de784e329b27.tar.gz
nginx-eeb8a9f56f727d2543c8ae7feae0de784e329b27.tar.bz2
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.
Diffstat (limited to 'src/event/quic/ngx_event_quic_ssl.c')
-rw-r--r--src/event/quic/ngx_event_quic_ssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_ssl.c b/src/event/quic/ngx_event_quic_ssl.c
index 6b0bae1ed..e0862e296 100644
--- a/src/event/quic/ngx_event_quic_ssl.c
+++ b/src/event/quic/ngx_event_quic_ssl.c
@@ -494,6 +494,8 @@ ngx_quic_crypto_input(ngx_connection_t *c, ngx_chain_t *data)
*/
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;