mongodb / mongo-rust-driver

The official MongoDB Rust Driver
https://www.mongodb.com/docs/drivers/rust/current/
Apache License 2.0
1.44k stars 164 forks source link

RUST-1994 Implement happy eyeballs for TCP connection #1183

Closed abr-egn closed 2 months ago

abr-egn commented 3 months ago

RUST-1994

This adapts the implementation from the happy-eyeballs crate rather than using it directly to preserve some stream initialization that didn't fit in that crate and better match our error handling.

Benchmarks are within noise:

The implementation here is a fairly minimal rendition of RFC 6555; it does not include: