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-3579151 ] Better return COULDNT_RESOLVE_HOST iso TIMEDOUT ?

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 22 Oct 2012 08:40:55 -0700

Bugs item #3579151, was opened at 2012-10-22 08:40
Message generated for change (Tracker Item Submitted) made by phdems
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3579151&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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Philippe Demange (phdems)
Assigned to: Daniel Stenberg (bagder)
Summary: Better return COULDNT_RESOLVE_HOST iso TIMEDOUT ?

Initial Comment:
Hi,

running on Debian stable, and testing resolution errors, I got a CURLE_OPERATION_TIMEDOUT if I use the opt CURLOPT_TIMEOUT, but the error CURLE_COULDNT_RESOLVE_HOST if I don't use it, after 63 seconds.
Wouldn't it be better to return CURLE_COULDNT_RESOLVE_HOST in both cases, firstly to keep coherency between these two similar use cases, and secondly to allow a more precise diagnostic ?

Attached is a patch for that puspose.

Many thanks in advance.
Regards.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3579151&group_id=976
Received on 2012-10-22

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET