cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Adding Option To Happy Eyeballs

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 Sep 2015 23:16:50 +0200 (CEST)

On Thu, 27 Aug 2015, Alan Cronin (alcronin) wrote:

Howdy! Sorry for responding so slowly.

> 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?

I'm not opposed adding an option like this, but still, can you tell us
something about the motivation/need for this so that we understand it better?
Happy Eyeballs is after all explicitly designed to slightly favor IPv6.

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