diff options
author | Björn Stenberg <bjorn@haxx.se> | 2013-10-29 11:51:25 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-11-04 22:38:19 +0100 |
commit | 02fbc26d59c59170fd358034b04a43d8e9b7c78f (patch) | |
tree | 99f9688582ca5abdb78dbb8fb2c065bd9a6d2f97 /lib/multi.c | |
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.
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c index e6c2934a6..722cd8625 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -874,6 +874,7 @@ CURLMcode curl_multi_wait(CURLM *multi_handle, if(nfds) { /* wait... */ + infof(data, "Curl_poll(%d ds, %d ms)\n", nfds, timeout_ms); i = Curl_poll(ufds, nfds, timeout_ms); if(i) { |