Re: multihomed connections
Date: Wed, 9 Jun 2004 18:12:59 +0200
"Daniel Stenberg" <daniel-curl_at_haxx.se> 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 ubr4-ca5-0-sec.landg1.lb.home.nl port 80
* trying 22.214.171.124... * Connection refused
* trying 126.96.36.199... * Connection refused
* trying 188.8.131.52... * Connection refused
* trying 184.108.40.206... * Connection refused
* trying 10.221.110.1... * No error
* trying 220.127.116.11... * Connection refused
* trying 10.243.112.1... * 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