cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Need help with CURLOPT_CONNECTTIMEOUT option

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 25 Dec 2009 23:37:45 +0100 (CET)

On Tue, 22 Dec 2009, Rajat Sharma wrote:

> The application receives the FQDN server address from a different module and
> then interacts with it using HTTP. The issue i am facing is that if I remove
> the ethernet cable and then try to do the HTTP communication. This returns
> resolution failed after timeout happens, which is fine, but actuallyduring
> name resolution the main thread gets blocked.

Are you saying that the thread libcurl is running in is somehow magically
blocking another thread from executing?

> My libcurl is not compiled with c-ares library can that cause DNS resolution
> to block the entire process.

I guess that depends on your system but it does sound like a weird thing to
me. I figure you need to investigate your system's threading and name
resolving abilities.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-25