-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Networking
-
None
-
Service Arch
-
Fully Compatible
This is to reduce the cost of drivers that implement the Happy Eyeballs RFC to enable ipv6. That RFC calls for connecting over both ipv4 and ipv6 in parallel, using whichever connects first, and immediately closing the other connection.
Currently the server allocates a thread and allocates many objects as soon as it accepts an ingress connection. We should defer that work until there is data ready to be read from the socket. This will avoid allocating resources (other than the FD) for the doomed connections that the drivers will be closing.
This plan assumes that drivers won't send any data over the doomed TCP socket, even to initiate a TLS handshake.
- is related to
-
SERVER-33883 Implement fallback from IPv6 to IPv4 on outgoing connections
- Closed
- related to
-
CDRIVER-1972 Support IPv6 only hostnames
- Development Complete