curl-users
First attempt at --retry!
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 27 Oct 2004 23:36:55 +0200 (CEST)
Date: Wed, 27 Oct 2004 23:36:55 +0200 (CEST)
Hi again
I've just committed my first take at implementing --retry and --retry-delay.
With --retry [num] you tell curl how many times to retry a request if a
transient error is returned (or a timeout).
With --retry-delay [num] you set the number of seconds to wait between each
retry to override the default backoff algorithm: by default, curl will first
wait one second between them and then double the waiting between each retry
until it reaches 10 minutes.
Please test and comment. There's a little left to do for the upload case, but
downloading should work pretty good.
(Tomorrow's daily snapshot will contain this code.)
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-10-27