cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: when domain lookup result has ipv6 and ipv4

From: Vincent Chen <silence.vincent_at_gmail.com>
Date: Fri, 3 Jul 2015 10:34:56 +0800

Thanks!
now I need to create IPv6 & IPv4 socket for Happy Eyeball.

One more question,
I found curl doesn't cache successful connection for future uses.
Do I need to set any options for Happy Eyeball cache?

2015-07-02 14:16 GMT+08:00 Dan Fandrich <dan_at_coneharvesters.com>:

> On Thu, Jul 02, 2015 at 09:59:05AM +0800, Vincent Chen wrote:
> > I'm developing a HTTP client with multi interface and have some
> questions when
> > domain name look up has both IPv6 & IPv4 address
> >
> > [Question1]
> > I implement the opensocket call back to create socket by myself and
> monitor
> > socket event.
> >
> > and found the callback will be called twice.
> >
> > First callback is for IPv6 and the second callback is for IPv4.
>
> This behaviour is called "Happy Eyeballs" and is covered by RFC6555.
>
> >>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

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