cURL / Mailing Lists / curl-library / Single Mail


RE: CURL loops infinitely when cable is pulled out.

From: Sonia Subramanian <>
Date: Thu, 19 Apr 2007 20:46:49 -0700


Thanks. I will try this out with the new code.


-----Original Message-----
[] 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
> handled?

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:
Received on 2007-04-20