curl-library
Re: Multi cURL connect bug
Date: Sun, 7 Jul 2013 14:14:16 -0400
On Fri, Jul 5, 2013 at 5:50 PM, Evgeny Turnaev <turnaev.e_at_gmail.com> wrote:
>>
>> I can't, hence this email to the list asking for opinions on the
>> matter and the proposed patch :-)
>
> I am just curous - what cpu usage of fetching process will you
> experience using libcurl with your patch while trying to fetch for
> example 'http://google.com:12345/'
> (or any other host that will not respond with icmp and connect()
> should timeout after a while)
>
You're right, this will chew up CPU until the connect() call fails and
hence will not work. Looking at the new versions of libcurl, using the
options CURLOPT_OPENSOCKETFUNCTION + CURLOPT_SOCKOPTFUNCTION to "pass
in" a connected socket seems to be the way to go.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-07