]> granicus.if.org Git - curl/commit
connect: Add connection delay to Happy Eyeballs.
authorBjörn Stenberg <bjorn@haxx.se>
Tue, 29 Oct 2013 10:51:25 +0000 (11:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Nov 2013 21:38:19 +0000 (22:38 +0100)
commit02fbc26d59c59170fd358034b04a43d8e9b7c78f
tree99f9688582ca5abdb78dbb8fb2c065bd9a6d2f97
parent0074c9f5d12e84ed877647e78fcf77460a9270e5
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.
lib/connect.c
lib/connect.h
lib/ftp.c
lib/multi.c
lib/url.c