cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: libcurl and blocking internal DNS resolving

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 10 May 2009 19:46:02 +0200 (CEST)

On Sun, 10 May 2009, AL13N wrote:

> I'm trying to make a non-blocking application using libcurl, and i'm using
> the multi interface.

Then curl-library is the list you should ask these things on. My reply is
cc'ed over there.

> it seems to block in a poll request which is performed by the getaddrinfo.

Right, if you use a synchronous name resolver it's impossible to get that
non-blocking. Rebuild libcurl to use c-ares instead!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-05-10