cURL / Mailing Lists / curl-users / Single Mail

curl-users

max-time and connect-timeout options, results varying

From: Nicolas KOWALSKI <nicolas.kowalski_at_gmail.com>
Date: Tue, 7 Aug 2007 15:51:24 +0000 (UTC)

Hello,

I have some problems understanding why using the same command multiple times
against a site, which *is* down, gives me varying results.

The command line is:

curl --max-time 5 --connect-timeout 0 http://the-downsite.tld/

And when typed several times, I get a combination of:

1) curl: (7) couldn't connect

AND

2) curl: (28) connect() timed out!

I would expect only the case 2).

This is on Linux RHEL 4:
$ curl -V
curl 7.12.1 (i386-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2
libidn/0.5.6
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

Thanks,

-- 
Nicolas.
Received on 2007-08-07