diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2023-08-14 09:21:27 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2023-08-14 09:21:27 +0400 |
| commit | eeb8a9f56f727d2543c8ae7feae0de784e329b27 (patch) | |
| tree | a3b6dbde4411df979e93ca7df075cb15a5156850 /src/event/quic/ngx_event_quic_ssl.c | |
| parent | 58fc5e2830a0fa70810005ca03fdb9a531719696 (diff) | |
| download | nginx-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.c | 2 |
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; |
