cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: help -- will libcurl retry itself?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 20 Apr 2010 09:15:07 +0200 (CEST)

On Tue, 20 Apr 2010, Basil Su wrote:

> i use libcurl (7.19) to develop a simple ftp client on Linux. i found
> some ftp servers very busy and my client could not connect. i konw some
> other ftp client softwares will retry ( like that it retry for 30 times in 5
> minutes, and if it still could not connect, give it up). my problem is :
> will libcurl retry itself? if it will, is there some functions i could use
> to control it or configure? or i have to retry myself? thanks.

libcurl will not retry, you have to do it yourself. Some inspiration on how
that can be done, can be found in the curl tool code as it supports a --retry
option that does roughly what you ask for.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-20