From 7d7df831981feebdbfeb21c12d6c068312a6e4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Sat, 26 Oct 2013 14:17:33 +0200 Subject: 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. --- lib/connect.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/connect.h') 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 -- cgit v1.2.1