cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl issue with IPv6 and c-ares

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 2 Nov 2008 00:37:09 +0100 (CET)

On Sat, 1 Nov 2008, Daniel Johnson wrote:

>> Did you get anywhere on this road?
>
> I'm afraid not. It looks like changing libcurl to call cares twice is just
> as complicated as fixing cares to lookup both addresses. Due to the
> asynchronous nature of the lookups, simply doing two lookups would be
> insufficient since the results could come back at any time. You would need a
> lot of additional logic to wait for both lookups to return and then combine
> them. I couldn't think of an easy way to do it and it kind of defeats the
> purpose of asynch lookups anyway. At least that's how I understand what's
> going on. Sorry.

I understand that completely. I think the proper fix needs to be done in
c-ares so I think for now we can move the default to be IPv4 exactly as you
suggested in your first post in this thread.

(I'll add an appropriate mention of this in the TODO file in c-ares)

-- 
  / daniel.haxx.se
Received on 2008-11-02