commit | 02fbc26d59c59170fd358034b04a43d8e9b7c78f | [log] [tgz] |
---|---|---|
author | Björn Stenberg <bjorn@haxx.se> | Tue Oct 29 11:51:25 2013 +0100 |
committer | Daniel Stenberg <daniel@haxx.se> | Mon Nov 04 22:38:19 2013 +0100 |
tree | 99f9688582ca5abdb78dbb8fb2c065bd9a6d2f97 | |
parent | 0074c9f5d12e84ed877647e78fcf77460a9270e5 [diff] |
connect: Add connection delay to Happy Eyeballs. This patch adds a 200ms delay between the first and second address family socket connection attempts. It also iterates over IP addresses in the order returned by the system, meaning most dual-stack systems will try IPv6 first. Additionally, it refactors the connect code, removing most code that handled synchronous connects. Since all sockets are now non-blocking, the logic can be made simpler.