From 769cc2531ab6dd67ce9a9709b1708bd5ab82d179 Mon Sep 17 00:00:00 2001 From: Arham Wani Date: Mon, 10 Aug 2026 05:02:03 +0530 Subject: [PATCH] doc: correct Http2SecureServer.setTimeout() default The documented default for the `msecs` argument of `Http2SecureServer.setTimeout()` was `120000` (2 minutes), but the actual default timeout is `0` (no timeout): the constructor sets `this.timeout = 0` in lib/internal/http2/core.js, and the equivalent `Http2Server.setTimeout()` documentation already states `0 (no timeout)`. The default changed from 120s to 0 in https://github.com/nodejs/node/pull/27558, but this line was missed when the sibling entries were updated. Correct the default and add the matching changelog entry. Signed-off-by: Arham Wani --- doc/api/http2.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index d53548f76730..05815f89f797 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2786,9 +2786,12 @@ changes: description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of `ERR_INVALID_CALLBACK`. + - version: v13.0.0 + pr-url: https://github.com/nodejs/node/pull/27558 + description: The default timeout changed from 120s to 0 (no timeout). --> -* `msecs` {number} **Default:** `120000` (2 minutes) +* `msecs` {number} **Default:** 0 (no timeout) * `callback` {Function} * Returns: {Http2SecureServer}