-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: URI Options
Use Case
The Node.js net module now supports two new options for automatically selecting the IP address family: https://nodejs.org/api/net.html#socketconnectoptions-connectlistener
Since the driver forwards options to the Node.js net API, it should also support these options.
User Impact
Users can connect using IPv4 or IPv6 by letting the platform detect the right protocol always.
Dependencies
This might affect mongosh/Compass connectivity (in the sense that we may want to set these options).
Unknowns
I would lean towards setting autoSelectFamily: true by default but that might require some more discussion.
Acceptance Criteria
Implementation Requirements
- functional reqs, potential snafus to avoid, performance targets, etc
Testing Requirements
- unit test, spec test sync, etc
Documentation Requirements
- DOCSP ticket, API docs, etc
Follow Up Requirements
- additional tickets to file, required releases, etc
- is depended on by
-
COMPASS-6516 Investigate changes in NODE-4926: Support autoSelectFamily and autoSelectFamilyAttemptTimeout in options
- Open
- is related to
-
MONGOSH-1378 Call net.setDefaultAutoSelectFamily if available
- Closed
-
NODE-4884 Implement Happy Eyeballs when connecting to a server
- Closed
-
MONGOSH-1391 Allow usage of latest Node.js with mongosh in homebrew
- Closed
-
NODE-5754 Implement fallback to IPv4/IPv6 vice-versa
- Closed
- related to
-
NODE-4880 default to ipv4 when no mongocryptdURI is set in libmongocrypt bindings
- Closed
-
NODE-4678 The driver doesn't fallback to IPv4 if IPv6 is not working
- Closed
-
NODE-4911 node-mongodb-native - PR #3507: UPDATED READ.ME
- Closed