cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Is --ftp-retry a good idea?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 1 Nov 2004 15:15:19 +0100 (CET)

On Thu, 28 Oct 2004, Rich Gray wrote:

> I like doing retries in terms of determining how long the operation has to
> succeed. Keep trying until that limit is reached. It would seem that the
> outer limit is already available in the form of the -m/--max-time <seconds>
> parameter. The only other requirement then is to keep from beating things
> up if one is experiencing quick failures. A delay parameter is needed.

I've currently considered --max-time as a timeout for each individual attempt,
and if it times out I thought of it as reason to retry.

Should I perhaps instead make --max-time the maximum allowed time including
retries? If not, should I have a separate --retry-max-time ?

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-11-01