happy-eyeballs-timeout-ms.md (1043B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: happy-eyeballs-timeout-ms 5 Arg: <ms> 6 Help: Time for IPv6 before IPv4 7 Added: 7.59.0 8 Category: connection timeout 9 Multi: single 10 See-also: 11 - max-time 12 - connect-timeout 13 Example: 14 - --happy-eyeballs-timeout-ms 500 $URL 15 --- 16 17 # `--happy-eyeballs-timeout-ms` 18 19 Set the timeout for Happy Eyeballs. 20 21 Happy Eyeballs is an algorithm that attempts to connect to both IPv4 and IPv6 22 addresses for dual-stack hosts, giving IPv6 a head-start of the specified 23 number of milliseconds. If the IPv6 address cannot be connected to within that 24 time, then a connection attempt is made to the IPv4 address in parallel. The 25 first connection to be established is the one that is used. 26 27 The range of suggested useful values is limited. Happy Eyeballs RFC 6555 says 28 "It is RECOMMENDED that connection attempts be paced 150-250 ms apart to 29 balance human factors against network load." libcurl currently defaults to 30 200 ms. Firefox and Chrome currently default to 300 ms.