RE: CURL loops infinitely when cable is pulled out.
Date: Thu, 19 Apr 2007 20:46:49 -0700
Thanks. I will try this out with the new code.
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Thursday, April 19, 2007 1:08 PM
To: libcurl development
Cc: Charlotte Chang; Robert Spath; Shalu Jain
Subject: RE: CURL loops infinitely when cable is pulled out.
On Thu, 19 Apr 2007, Sonia Subramanian wrote:
> 1. We don't have poll() and we probably will use select.
> 2. On this platform select returns 0 as I verified with 7.15.4
You mean when select() times out? That's pretty normal.
> 3. In the code that calls it Curl_readwrite is a value of select_res
Yes of course. timeouts are very frequent on all platforms for slow or
> Is a select_res value of 0 valid?
Yes, it means the socket didn't turn readable within the given time
we talk about downloads).
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-04-20