cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3415046 ] Resolution name hangs longer than specified timeout

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 28 Sep 2011 16:58:29 +0200

Bugs item #3415046, was opened at 2011-09-28 16:58
Message generated for change (Tracker Item Submitted) made by phdems
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3415046&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: name resolving/DNS
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Philippe Demange (phdems)
Assigned to: Daniel Stenberg (bagder)
Summary: Resolution name hangs longer than specified timeout

Initial Comment:
Hello world,

I am experiencing a problem with the name resolution, either with c-ares enabled or not. In both cases, if the resolution is not possible (for example by setting a wrong DNS in /etc/resolv.conf or by removing the ethernet cable), libcurl hangs for several seconds before returning, although a timeout is set to 1 second.

Precision: As I am working on UNIX system, I've set the CURLOPT_NOSIGNAL option as recommended, thus avoiding a segfault.

Here is what I observe:
1. c-ares enabled + curl_easy_perform: OK (timeout of 1 second)
2. c-ares enabled + curl_multi_perform: hangs during almost 60 seconds (callback ares_query_completed_cb is not called during this time)
3. c-ares disabled + curl_easy_perform: hangs during 20 seconds (blocked by getaddrinfo in Curl_getaddrinfo_ex)
4. c-ares disabled +curl_multi_perform: hangs during 20 seconds (blocked by getaddrinfo in Curl_getaddrinfo_ex)

Source code is attached (based on mutli-single.c example sample code from curl.haxx.se), as is config.log file (generated at libcurl's build).

Any idea, suggestion or help will be very much appreciated :) Thanks in advance.

Best Regards.
Philippe.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3415046&group_id=976
Received on 2011-09-28

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET