happy-eyeballs-timeout-ms.d 893 B

12345678910111213141516171819
  1. Long: happy-eyeballs-timeout-ms
  2. Arg: <milliseconds>
  3. Help: Time for IPv6 before trying IPv4
  4. Added: 7.59.0
  5. Category: connection
  6. Example: --happy-eyeballs-timeout-ms 500 $URL
  7. ---
  8. Happy Eyeballs is an algorithm that attempts to connect to both IPv4 and IPv6
  9. addresses for dual-stack hosts, giving IPv6 a head-start of the specified
  10. number of milliseconds. If the IPv6 address cannot be connected to within that
  11. time, then a connection attempt is made to the IPv4 address in parallel. The
  12. first connection to be established is the one that is used.
  13. The range of suggested useful values is limited. Happy Eyeballs RFC 6555 says
  14. "It is RECOMMENDED that connection attempts be paced 150-250 ms apart to
  15. balance human factors against network load." libcurl currently defaults to
  16. 200 ms. Firefox and Chrome currently default to 300 ms.
  17. If this option is used several times, the last one will be used.