cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: [PATCH, RFC] Make hostthre.c work on POSIX

From: Joshua Kwan <jkwan_at_vmware.com>
Date: Sat, 7 Nov 2009 08:54:32 -0800

Hey all,

On 11/5/09 17:56, "Constantine Sapuntzakis" <csapuntz_at_gmail.com> wrote:
>> This file seems to have an unclear license. It says "license
>> GPLWithACException" in the header, but with no further explanation. Remember
>> that we avoid *GPL licensed code in this project!
>>
>
> Daniel,
>
> Sorry about that. I'll remove that in the next version

The GPLWithACException is the same license that is used in m4/libtool.m4,
which we also ship:

# GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# As a special exception to the GNU General Public License,
# if you distribute this file as part of a program or library that
# is built using GNU Libtool, you may include this file under the
# same distribution terms that you use for the rest of that program.

^ That's the exception.

I think it would be disingenuous to deny acx_pthread.m4 while still shipping
libtool.m4. Agree/disagree?
 
> Here are the existing work items on the patch, as I see it:
> * make it compile on systems without pthreads and not Windows
> * pthread detection must be rewritten to not be GPL
> * detect thread safe resolver on POSIX as follows:
> * the presence of gethostbyname_r API
> * Mac OS X/FreeBSD 5.3 or above - whitelist getaddrinfo as thread safe
> * disable thread resolver on POSIX by default except if we detect
> thread safe resolve
> * change hostthre.c to use getaddrinfo even for IPv4 if present and
> platform is thread-safe
> * otherwise fallback to gethostbyname_r on UNIX or gethostbyname
> on Windows
> * to support this change, need a version of addrinfo_callback
> that works with Curl_addrinfo * no matter what the compile options
> (IPv6 or not) are...

I'll see if I can take a crack at these. I've got some time to burn this
morning.

Most likely, I will send off a patch that fixes some of these work items.

BTW - I'm importing curl into git and will see about maintaining a regularly
updated mirror of it for everyone's use. That way, we can officially keep
using CVS until the power of distributed revision control seduces Daniel.

-- 
Joshua Kwan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-07

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET