Skip to content
  • Björn Stenberg's avatar
    Add "Happy Eyeballs" for IPv4/IPv6. · 7d7df831
    Björn Stenberg authored
    This patch invokes two socket connect()s nearly simultaneously, and
    the socket that is first connected "wins" and is subsequently used for
    the connection. The other is terminated.
    
    There is a very slight IPv4 preference, in that if both sockets connect
    simultaneously IPv4 is checked first and thus will win.
    7d7df831