cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Guido Reina <guidoreina_at_isdn-si.com>
Date: Tue, 8 Oct 2002 17:19:16 +0200

> Yes, but perhaps you may not want to do the retry depending on what kind
of
> error you receivied...
Sure, it was just a very basic schema.

Perfect, very easy to use.

Thank you very much,

Guido.

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "libcurl Mailing list" <curl-library_at_lists.sourceforge.net>
Sent: Tuesday, October 08, 2002 5:06 PM
Subject: Re: How to set the number of retries for FTP?

> 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
>

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-08