diff --git a/doc/api/quic.md b/doc/api/quic.md index 259fe89916b..65c0591b22e 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -2747,6 +2747,23 @@ added: v23.8.0 Specifies the maximum number of milliseconds a TLS handshake is permitted to take to complete before timing out. +#### `sessionOptions.initialRtt` + + + +* Type: {bigint|number} +* **Default:** `0` (use ngtcp2 default of 333ms) + +Specifies the initial round-trip time estimate in milliseconds. This value is +used for probe timeout (PTO) computation, initial pacing, and early loss +detection before the first actual RTT sample is collected from the connection. +The default of 333ms is appropriate for the general internet. For low-latency +environments such as loopback or same-rack deployments, setting a value closer +to the actual RTT (e.g., `1`) avoids unnecessarily conservative initial +behavior. + #### `sessionOptions.keepAlive`