Happy Eyeballs
termKept in this browser · My desk
An algorithm for clients on dual-stack hosts that starts connection attempts over IPv6 and IPv4 in a staggered race and keeps the first one that succeeds, so a broken path costs a fraction of a second instead of a timeout.
RFC 8305 (Happy Eyeballs Version 2, 2017) replaced the original RFC 6555. It notes that clients "that attempt multiple connections in parallel have a chance of establishing a connection more quickly", and calls the wait before the next attempt the Connection Attempt Delay, with 250 milliseconds as one recommended default. In Python, asyncio's create_connection() and open_connection() take happy_eyeballs_delay and interleave (since 3.8); socket.create_connection() tries the addresses one after another.
Also known as: RFC 8305, RFC 6555, happy_eyeballs_delay, Connection Attempt Delay
Sources
- RFC 8305, Happy Eyeballs Version 2: Better Connectivity Using Concurrency: parallel attempts, the Connection Attempt Delay and its 250-millisecond recommended default, obsoletes RFC 6555 (read 2026-10-27)
- Python 3.13 documentation, asyncio event loop: create_connection() with happy_eyeballs_delay and interleave, added in 3.8 (read 2026-10-27)