On Fri, Jul 5, 2013 at 5:50 PM, Evgeny Turnaev <[email protected]> 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
