blob: c5f10f6db8bfb0cbc806d171ff9bbdb6ca9fb4f0 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: happy-eyeballs-timeout-ms
4Arg: <milliseconds>
5Help: Time for IPv6 before trying IPv4
6Added: 7.59.0
7Category: connection
8Example: --happy-eyeballs-timeout-ms 500 $URL
9See-also: max-time connect-timeout
10Multi: single
11---
12Happy Eyeballs is an algorithm that attempts to connect to both IPv4 and IPv6
13addresses for dual-stack hosts, giving IPv6 a head-start of the specified
14number of milliseconds. If the IPv6 address cannot be connected to within that
15time, then a connection attempt is made to the IPv4 address in parallel. The
16first connection to be established is the one that is used.
17
18The range of suggested useful values is limited. Happy Eyeballs RFC 6555 says
19"It is RECOMMENDED that connection attempts be paced 150-250 ms apart to
20balance human factors against network load." libcurl currently defaults to
21200 ms. Firefox and Chrome currently default to 300 ms.