cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to set the number of retries for FTP?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 8 Oct 2002 17:06:31 +0200 (MET DST)

On Tue, 8 Oct 2002, Guido Reina wrote:

> Then can I do something like this?
>
> for (i = 0; i < MAX_ATTEMPTS; i++) {
> if ((ret = curl_easy_perform(curl)) == CURL_OK)
> break;
> }

Yes, but perhaps you may not want to do the retry depending on what kind of
error you receivied...

> or do I have to call 'curl_easy_setopt'?

Only if you want to change an option. Unless you change something, the
previously set value will remain.

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-08