On Wed, Aug 16, 2017 at 2:50 AM, Daniel Stenberg <[email protected]> wrote:
> On Tue, 15 Aug 2017, Rahul Sabnis via curl-library wrote: > > But I do not see same behavior on AIX 7.1. Here, the timeout is always 15 >> secs. I tried with values greater than and less than 15 seconds. Tried with >> value of 10 secs and 60 secs. >> > > Which libcurl version? Built to use which resolver backend? > > libcurl version 7.54.0. Not sure about resolver backend but will find it out. > If you set the timeout to 60 seconds and it returns after 15, what exactly > does curl say in its error message and return code? I see difference in behavior on Linux and AIX with below two scenarios: 1. Specify some random IP: 10.193.70.820 2. Specify IP which could not be reached when the client is trying to connect. Linux: 1. Random IP curl_response_code = 6 (CURLE_COULDNT_RESOLVE_HOST) error_msg = Couldn't resolve host '10.193.70.820' 2. Valid IP: curl_response_code = 28 (CURLE_OPERATION_TIMEDOUT) error_msg = Connection timed out after 60001 milliseconds AIX: 1. Random IP curl_response_code = 6 (CURLE_COULDNT_RESOLVE_HOST) error_msg = Couldn't resolve host '10.193.70.820' 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) While I am ok with these results as long as I can show proper message, but just wanted to understand the reason for this difference in behaviour. > > -- > > / daniel.haxx.se >
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
