cURL / Mailing Lists / curl-users / Single Mail

curl-users

FTP retries

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 28 Jan 2011 14:37:14 +0100

I'm just wondering why curl is so quick to give up on a TCP
reset (after 21 sec). Wget gives up after 5 times and approx. 2 min, wink,
wink. Somebody should try this slow server:

curl --retry 5 --retry-max-time 1000 -v -o openssl.tgz ftp://ftp.openssl.org/snapshot/openssl-SNAP-20110128.tar.gz
* Couldn't find host ftp.openssl.org in the _netrc file; using defaults
* About to connect() to ftp.openssl.org port 21 (#0)
* Trying 195.30.6.166... % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
* Connected to ftp.openssl.org (195.30.6.166) port 21 (#0)
  0 0 0 0 0 0 0 0 --:--:-- 0:00:20 --:--:-- 0* Recv failure: Connection was reset
* Closing connection #0

curl: (56) Recv failure: Connection was reset

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-28