diff options
author | Björn Stenberg <bjorn@haxx.se> | 2013-10-26 14:17:33 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-10-27 11:19:53 +0100 |
commit | 7d7df831981feebdbfeb21c12d6c068312a6e4b6 (patch) | |
tree | 0f9020e62bfbc3fa74b2d7a9200f03cf5fe4e1ae /lib/connect.h | |
parent | 7de4cc35f81aa6c3cdb8b377a27843bcabdaec48 (diff) | |
download | curl-7d7df831981feebdbfeb21c12d6c068312a6e4b6.tar.gz |
Add "Happy Eyeballs" for IPv4/IPv6.
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.
Diffstat (limited to 'lib/connect.h')
-rw-r--r-- | lib/connect.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/connect.h b/lib/connect.h index ab9800289..526ce37a0 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -33,8 +33,6 @@ CURLcode Curl_is_connected(struct connectdata *conn, CURLcode Curl_connecthost(struct connectdata *conn, const struct Curl_dns_entry *host, /* connect to this */ - curl_socket_t *sockconn, /* not set if error */ - Curl_addrinfo **addr, /* the one we used */ bool *connected); /* truly connected? */ /* generic function that returns how much time there's left to run, according |