diff --git a/doc/api/net.md b/doc/api/net.md index 5b0a5dfee2e52f..902d3bcdebdcc3 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1867,7 +1867,7 @@ added: --> Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of [`socket.connect(options)`][]. -The initial default value is `250` or the value specified via the command line +The initial default value is `500` or the value specified via the command line option `--network-family-autoselection-attempt-timeout`. * Returns: {number} The current default value of the `autoSelectFamilyAttemptTimeout` option. diff --git a/src/node_options.h b/src/node_options.h index d2738e2510605a..3e66406e607a7b 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -151,7 +151,7 @@ class EnvironmentOptions : public Options { int64_t heap_snapshot_near_heap_limit = 0; std::string heap_snapshot_signal; bool network_family_autoselection = true; - uint64_t network_family_autoselection_attempt_timeout = 250; + uint64_t network_family_autoselection_attempt_timeout = 500; uint64_t max_http_header_size = 16 * 1024; bool deprecation = true; bool force_async_hooks_checks = true; diff --git a/test/parallel/test-net-autoselectfamily-attempt-timeout-default-value.js b/test/parallel/test-net-autoselectfamily-attempt-timeout-default-value.js index 782276952708a0..c244c4577d2277 100644 --- a/test/parallel/test-net-autoselectfamily-attempt-timeout-default-value.js +++ b/test/parallel/test-net-autoselectfamily-attempt-timeout-default-value.js @@ -5,4 +5,4 @@ const { platformTimeout } = require('../common'); const assert = require('assert'); const { getDefaultAutoSelectFamilyAttemptTimeout } = require('net'); -assert.strictEqual(getDefaultAutoSelectFamilyAttemptTimeout(), platformTimeout(2500)); +assert.strictEqual(getDefaultAutoSelectFamilyAttemptTimeout(), platformTimeout(5000));