curl-library
RE: CURL loops infinitely when cable is pulled out.
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Apr 2007 22:08:24 +0200 (CEST)
Date: Thu, 19 Apr 2007 22:08:24 +0200 (CEST)
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 ==0
> handled?
Yes of course. timeouts are very frequent on all platforms for slow or stalled
transfers.
> Is a select_res value of 0 valid?
Yes, it means the socket didn't turn readable within the given time (assuming
we talk about downloads).
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-04-19