Happy Eyeballs

term

networkingprogramming

Kept 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

← Back to H Back to the glossary