| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ae91a6c commit 506b79e
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1905,7 +1905,7 @@ added: | |||
| 1905 | 1905 | --> | |
| 1906 | 1906 | ||
| 1907 | 1907 | Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of [`socket.connect(options)`][]. | |
| 1908 | - The initial default value is `250` or the value specified via the command line | ||
| 1908 | + The initial default value is `500` or the value specified via the command line | ||
| 1909 | 1909 | option `--network-family-autoselection-attempt-timeout`. | |
| 1910 | 1910 | ||
| 1911 | 1911 | * Returns: {number} The current default value of the `autoSelectFamilyAttemptTimeout` option. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -155,7 +155,7 @@ class EnvironmentOptions : public Options { | |||
| 155 | 155 | int64_t heap_snapshot_near_heap_limit = 0; | |
| 156 | 156 | std::string heap_snapshot_signal; | |
| 157 | 157 | bool network_family_autoselection = true; | |
| 158 | - uint64_t network_family_autoselection_attempt_timeout = 250; | ||
| 158 | + uint64_t network_family_autoselection_attempt_timeout = 500; | ||
| 159 | 159 | uint64_t max_http_header_size = 16 * 1024; | |
| 160 | 160 | bool deprecation = true; | |
| 161 | 161 | bool force_async_hooks_checks = true; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -184,8 +184,9 @@ function isPi() { | |||
| 184 | 184 | } | |
| 185 | 185 | } | |
| 186 | 186 | ||
| 187 | - // When using high concurrency or in the CI we need much more time for each connection attempt | ||
| 188 | - net.setDefaultAutoSelectFamilyAttemptTimeout(platformTimeout(net.getDefaultAutoSelectFamilyAttemptTimeout() * 10)); | ||
| 187 | + // When using high concurrency or in the CI we need much more time for each connection attempt. | ||
| 188 | + // Default 500ms becomes 2500ms for tests. | ||
| 189 | + net.setDefaultAutoSelectFamilyAttemptTimeout(platformTimeout(net.getDefaultAutoSelectFamilyAttemptTimeout() * 5)); | ||
| 189 | 190 | const defaultAutoSelectFamilyAttemptTimeout = net.getDefaultAutoSelectFamilyAttemptTimeout(); | |
| 190 | 191 | ||
| 191 | 192 | const buildType = process.config.target_defaults ? | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,4 +7,4 @@ const { platformTimeout } = require('../common'); | |||
| 7 | 7 | const assert = require('assert'); | |
| 8 | 8 | const { getDefaultAutoSelectFamilyAttemptTimeout } = require('net'); | |
| 9 | 9 | ||
| 10 | - assert.strictEqual(getDefaultAutoSelectFamilyAttemptTimeout(), platformTimeout(123 * 10)); | ||
| 10 | + assert.strictEqual(getDefaultAutoSelectFamilyAttemptTimeout(), platformTimeout(123 * 5)); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments