From 7b5ae05804b8846037633225854c57d697b2ded7 Mon Sep 17 00:00:00 2001 From: Arham Wani Date: Mon, 10 Aug 2026 09:21:49 +0530 Subject: [PATCH] doc: correct net autoSelectFamilyAttemptTimeout default The initial default documented for the `value` argument of `net.setDefaultAutoSelectFamilyAttemptTimeout()` was `250`, but the actual default is `500`: `src/node_options.h` initializes `network_family_autoselection_attempt_timeout = 500`, and `net.getDefaultAutoSelectFamilyAttemptTimeout()` returns `500` at runtime. The description of the corresponding getter a few lines above already states `500`. Correct the value so the two agree. Signed-off-by: Arham Wani --- doc/api/net.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/net.md b/doc/api/net.md index 81a25eee0f1b..e41989cd0e5f 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -2431,7 +2431,7 @@ added: Sets the default value of the `autoSelectFamilyAttemptTimeout` option of [`socket.connect(options)`][]. * `value` {number} The new default value, which must be a positive number. If the number is less than `10`, - the value `10` is used instead. The initial default value is `250` or the value specified via the command line + the value `10` is used instead. The initial default value is `500` or the value specified via the command line option `--network-family-autoselection-attempt-timeout`. ## `net.isIP(input)`