curl-library
Re: select call returns without any data
Date: Thu, 07 Jan 2010 12:54:20 +0000
> I am facing a problem in which I keep calling this function in a loop, and
> it does not wait on select. ie select returns immediately. And i am
> calling
> this method in a loop for about one minute. Due to this my CPU usage is
> rising to 100% for this one minute. I wanted to know the exact reason why
> select is returning so fast (before timeout) without any callbacks getting
> called. some sort of paradox.
#That certainly sounds like a (libcurl) bug. What libcurl version are you
using
#on what platform? Have you tried to use wireshark to see what's actually
#happens on the network at that point in time? Or perhaps try using
#CURLOPT_DEBUGFUNCTION to get to see more details exactly what libcurl does
and
#what it sends and receives. Could provide some additional clues.
#Does the problem repeat itself every time against the same URL or does it
#vary?
I am using older version of libcurl 7.19.0
I have not tried wireshark yet. You had suggested this in my earlier
questions. My apologies for underestimating wireshark :)...
I will reply in this same thread once I have more data after analysis using
wireshark,
Thanks a lot..
Regards
Shivanand
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-07