Discussion:
help -- will libcurl retry itself?
Basil Su
2010-04-20 02:54:14 UTC
Permalink
hi all,
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.

yours,
Andrew
Daniel Stenberg
2010-04-20 07:15:07 UTC
Permalink
Post by Basil Su
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
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
Loading...