comparison 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
comparison
equal deleted inserted replaced
9146:f3412ec3b6d1 9147:58afcd72446f
492 * An endpoint MUST discard its Handshake keys 492 * An endpoint MUST discard its Handshake keys
493 * when the TLS handshake is confirmed. 493 * when the TLS handshake is confirmed.
494 */ 494 */
495 ngx_quic_discard_ctx(c, ssl_encryption_handshake); 495 ngx_quic_discard_ctx(c, ssl_encryption_handshake);
496 496
497 ngx_quic_discover_path_mtu(c, qc->path);
498
497 /* start accepting clients on negotiated number of server ids */ 499 /* start accepting clients on negotiated number of server ids */
498 if (ngx_quic_create_sockets(c) != NGX_OK) { 500 if (ngx_quic_create_sockets(c) != NGX_OK) {
499 return NGX_ERROR; 501 return NGX_ERROR;
500 } 502 }
501 503