cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURL loops infinitely when cable is pulled out.

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

Hi,

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

Thanks,
Sonia.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[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
==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.html
Received on 2007-04-20