From fb95352e0f8fe92a1883588f6ab45e42ea81a83b Mon Sep 17 00:00:00 2001 From: Paolo Insogna Date: Thu, 13 Oct 2022 08:22:37 +0000 Subject: [PATCH 1/2] net: add autoSelectFamily and autoSelectFamilyAttemptTimeout options --- doc/api/net.md | 18 ++ lib/_tls_wrap.js | 18 +- lib/internal/errors.js | 8 + lib/internal/net.js | 1 + lib/net.js | 255 +++++++++++++++++- test/parallel/test-http-happy-eyeballs.js | 148 ++++++++++ test/parallel/test-https-happy-eyeballs.js | 164 +++++++++++ .../test-net-happy-eyeballs-ipv4first.js | 112 ++++++++ test/parallel/test-net-happy-eyeballs.js | 215 +++++++++++++++ 9 files changed, 932 insertions(+), 7 deletions(-) create mode 100644 test/parallel/test-http-happy-eyeballs.js create mode 100644 test/parallel/test-https-happy-eyeballs.js create mode 100644 test/parallel/test-net-happy-eyeballs-ipv4first.js create mode 100644 test/parallel/test-net-happy-eyeballs.js diff --git a/doc/api/net.md b/doc/api/net.md index a72d3bb3a66c8a..5381949fc9348c 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -856,6 +856,9 @@ behavior.