mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
net: enable autoSelectFamily by default
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: https://github.com/nodejs/node/pull/46790 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
committed by
Rich Trott
parent
069365c5bd
commit
8b51c1a869
@@ -7,12 +7,8 @@ if (!common.hasCrypto) {
|
||||
common.skip('missing crypto');
|
||||
}
|
||||
|
||||
const { setDefaultAutoSelectFamilyAttemptTimeout } = require('net');
|
||||
const { connect } = require('tls');
|
||||
|
||||
// Some of the windows machines in the CI need more time to establish connection
|
||||
setDefaultAutoSelectFamilyAttemptTimeout(common.platformTimeout(common.isWindows ? 1500 : 250));
|
||||
|
||||
// Test that TLS connecting works without autoSelectFamily
|
||||
{
|
||||
const socket = connect({
|
||||
|
||||
Reference in New Issue
Block a user