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: 10.193.70.820

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 10.193.70.82 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 expired.

--

 / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to