cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP retries

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 28 Jan 2011 17:06:49 +0100 (CET)

On Fri, 28 Jan 2011, Gisle Vanem wrote:

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

Actually, it has no default timeout so it'll try until it fails or something
returns an errror

> Somebody should try this slow server:

It's completely unresponsive to me. I checked with wireshark and the 21
seconds is SYN (wait 3 seconds) SYN (wait 6 seconds) SYN (wait 12 seconds).

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

It actually says it connects?

> 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

... and the recv() fails, it isn't a timeout!?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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