curl / Mailing Lists / curl-library / Single Mail


Re: Connection timeout problem on AIX

From: Daniel Stenberg <>
Date: Thu, 17 Aug 2017 16:25:18 +0200 (CEST)

On Thu, 17 Aug 2017, Rahul Sabnis wrote:

> I see difference in behavior on Linux and AIX with below two scenarios:
> 1. Specify some random IP:

That's not a random IP though. That's a random *invalid* IP. Not that it might
make a whole lot of difference here.

> 2. Valid IP:
> curl_response_code = 7 (CURLE_COULDNT_CONNECT)
> error_msg = Failed to connect to port 80: Connection timed out
> For test scenario 2 (Valid IP) the connection times out after specified time
> (60 secs). In second scenario I was expecting response code = 28 (as seen in
> Linux)

I suspect this is AIX itself that times this out this attempt and not curl, so
in curl's view it is a connection failure rather than the timeout that

Received on 2017-08-17