cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl/LibCurl compiled on OS X without --disable-ipv6 is really slow

From: Jacob Swed <gryla_at_earthlink.net>
Date: Sat, 20 Dec 2003 11:11:45 -0800

I saw this more as a build issue. As configure is running it should (if
possible) detect that IPv6 would kill performance given X or Y factors
and disable it by default. Maybe for now that is based on the platform.
If you want to build it with IPv6 for whatever reason you still could
by passing the --enable-ipv6 flag.

That way when someone builds curl on OS X for example they won't be put
into a somewhat unusable state by default.

On Friday, December 19, 2003, at 05:11 AM, Daniel Stenberg wrote:

> On Fri, 19 Dec 2003, Jacob Swed wrote:
>
>> The library version being used is 7.11.0-20031217. Compiled under OS X
>> 10.2.8.
>>
>> We have not investigated the why, but have determined that if
>> curl/libcurl
>> is complied on OS X without the --disable-ipv6 option performance is
>> severely and noticeably degraded. curl/libcurl takes an extremely
>> long time
>> resolving the host or host IP. Compiling with the --disable-ipv6
>> option
>> alleviates the delays entirely. Incidentally, this occurs when run on
>> vanilla installations of OS 10.1, 10.2 and 10.3.
>
> The difference in name lookups between ipv6 enabled and disabled, is
> the use
> of getaddrinfo (for ipv6-enabled) or gethostbyname (for ipv6-disabled).
>
> I fail to see what libcurl can do to affect the name lookup speeds,
> other than
> leave it to the system libraries.
>
> Some linux installations are known to perform very slow lookups with
> a ipv6-enabled kernel but without ipv6 support really enabled, which
> libcurl
> tries to detect and adjust to. Perhaps there's something similar in
> Mac OS X
> land...
>
> --
> Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
> [[ Do not send mails to this email address. They won't reach me. ]]
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
> IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys
> admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-20