cURL / Mailing Lists / curl-library / Single Mail

curl-library

Adding Option To Happy Eyeballs

From: Alan Cronin (alcronin) <alcronin_at_cisco.com>
Date: Thu, 27 Aug 2015 10:22:16 +0000

Hi,

We were planning on making changes to libCurl to add new functionality regarding IPv6 and wanted input as to the design.

The change involves adding an option to Curl (something like CURLOPT_IP_FAMILY_PREFERENCE) which would allow a preference of IPv4 vs IPv6 to be set for the first connection in a dual stack environment. This functionality would extend the happy eyeballs algorithm.

There is already an CURLOPT_IPRESOLVE option which limits the IP version but this new option is more a preference in the case there is both an IPv4 and IPv6 interface for the connection.

We propose making a change to connect.c::Curl_connecthost() and reorder the conn->tempaddr object before calling singleipconnect() based on the option set by the consumer.

What are your thoughts on this proposal?

Thanks,
Alan

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-08-27