cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2987196 ] Curl_ipv4_resolve_r unneccesarily sets AI_CANONNAME

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 15 Apr 2010 11:07:27 +0000

Bugs item #2987196, was opened at 2010-04-14 18:08
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2987196&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: bad behaviour
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: rainer canavan (aitu4iu1)
Assigned to: Daniel Stenberg (bagder)
Summary: Curl_ipv4_resolve_r unneccesarily sets AI_CANONNAME

Initial Comment:
Since 7.20.0, curl performs unnecessary (for most cases anyway) reverse-lookups, which in some cases cause the entire request to fail due to a timeout. Specifically, in lib/hostip4.c Curl_ipv4_resolve_r, hints.ai_flags is set unconditionally to AI_CANONNAME. This is explicitly disabled in hostthre.c (#if 0 /* removed nov 8 2005 before 7.15.1 */) and enabled in hostipv6 only when HAVE_GSSAPI is enabled and the request known to use kerberos.

OS used is debian 5.0.4 on x86, ipv6 is explicitly disabled via --disable-ipv6.

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

Comment By: Daniel Stenberg (bagder)
Date: 2010-04-15 13:07

Message:
Thanks for the report, this problem is now fixed in the git repository.

To try it out, you either checkout/update your git clone:
http://curl.haxx.se/source.html

or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2987196&group_id=976
Received on 2010-04-15

These mail archives are generated by hypermail.

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

File upload with ASP.NET