cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: c-ares question

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 8 Sep 2010 00:01:20 +0200 (CEST)

On Tue, 7 Sep 2010, Anders Bakken wrote:

> I have an issue with curl hanging in getaddrinfo when losing the network
> connection. (I am using CURLOPT_NOSIGNAL).

Right, then you rely solely on the getaddrinfo() implementation to give up at
some point.

> I've verified that this is solved by using --enable-ares but I am a little
> bit worried about potential side-effects of doing this. Should everything
> behave the same in all other cases when using c-ares and not?

No. If there would be the same behavior we wouldn't need multiple resolve
backends. One of the main points with c-ares is that it is done asynchronous
in a controlled and fine way so that it can be stopped and given up nicely.

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