cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Curllib on vista?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 4 Mar 2008 22:44:59 +0100 (CET)

On Tue, 4 Mar 2008, Jared Wilkin wrote:

> Here the case 0 isn't handled it is the timeout case

This is not true. It is handled fine. It will call the Curl_readwrite()
function and if you want a timeout, you set one of those options and they will
trigger when the time comes.

> if you increment a retries counter up to some defined maximum at which point
> you return a CURLE_OPERATION_TIMEDOUT error, this produces the desired
> effect.

No, that's not the desired effect since any connection can be idle for a while
without it being a problem of any sort.

The correct solution is either that we detect the broken connection and then
abort the transfer. For connections that are broken but not detected so, the
already existing timeout options should be good enough.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-03-04