Skip to content

doc: correct net autoSelectFamilyAttemptTimeout default - #65179

Closed
arhxam wants to merge 1 commit into
nodejs:mainfrom
arhxam:doc-net-autoselect-default
Closed

doc: correct net autoSelectFamilyAttemptTimeout default#65179
arhxam wants to merge 1 commit into
nodejs:mainfrom
arhxam:doc-net-autoselect-default

Conversation

@arhxam

@arhxam arhxam commented Aug 10, 2026

Copy link
Copy Markdown

Description

The initial default documented for the value argument of
net.setDefaultAutoSelectFamilyAttemptTimeout() was 250, but the
actual default is 500.

Evidence:

  • src/node_options.h initializes
    network_family_autoselection_attempt_timeout = 500.

  • At runtime:

    require('node:net').getDefaultAutoSelectFamilyAttemptTimeout(); // 500
  • The description of the corresponding getter
    (net.getDefaultAutoSelectFamilyAttemptTimeout()) a few lines above in
    the same document already states the initial default is 500; only
    this setter entry was stale at 250.

This corrects the value so the two entries agree. Documentation-only
change.

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 <arhamwani765@gmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. net Issues and PRs related to the net subsystem. labels Aug 10, 2026
@aduh95 aduh95 closed this Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. net Issues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants