curl-users
Re: max-time and connect-timeout options, results varying
Date: Wed, 8 Aug 2007 10:25:47 +0200 (CEST)
On Wed, 8 Aug 2007, Nicolas KOWALSKI wrote:
> $ curl --verbose --max-time 5 --connect-timeout 0 http://10.10.10.10/
> * About to connect() to 10.10.10.10 port 80 (#0)
> * Trying 10.10.10.10... Timeout
> * connect() timed out!
> * Closing connection #0
> curl: (28) connect() timed out!
I can't my version do this... I guess digging into the code is the next step
to figure this out!
> $ curl -V
> curl 7.16.4 (i686-redhat-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.7a
> zlib/1.2.1.2
> Protocols: tftp ftp telnet dict ldap http file https ftps
> Features: Largefile NTLM SSL libz
And I used the stock debian unstable version and my current CVS version for
testing:
curl 7.16.4 (i486-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3.3
libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
curl 7.17.0-CVS (i686-pc-linux-gnu) libcurl/7.17.0-CVS OpenSSL/0.9.8e
zlib/1.2.3.3 c-ares/1.4.1-CVS libidn/0.6.5 libssh2/0.18.0-CVS
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: AsynchDNS Debug GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-08-08