cURL / Mailing Lists / curl-library / Single Mail


Re: multihomed connections

From: Gisle Vanem <>
Date: Wed, 9 Jun 2004 18:12:59 +0200

"Daniel Stenberg" <> said:

> I think it makes most sense to have CURLOPT_CONNECTTIME affect all IPs tried,
> so that -c10 means 10 seconds no matter how many IP addresses the name might
> resolve to.

> I remember this problem, and as far as I remember it, we haven't found a fix
> for this. If the connect code believes it has a good connect to the host, it
> will continue to do protocol-specific stuff (which in this case means
> attempting to read the FTP server response). The question is why it believes
> that it is connected!

I now disabled the built-in ICF firewall in Win-XP and curl behaves as expected.
Allthough tcpdump doesn't show any connections, Winsock seems to be
fooled by ICF?!

I did a patch that now looks like:

* About to connect() to port 80
* trying * Connection refused
* trying * Connection refused
* trying * Connection refused
* trying * Connection refused
* trying * No error
* trying * Connection refused
* trying * No error
* Closing connection #0
curl: (7) couldn't connect

The "No error" is wrong; it should be "Host unreachable". I'll look into why.
And I don't like infof() putting a '*' before the 2nd part of line. Any way to drop

BTW. I'd like to rewrite Curl_printable_address() so avoiding the #ifdef'ing
where it's called. I.e.
const char *Curl_printable_address (const Curl_addrinfo *, char*, size_t);

Received on 2004-06-09