cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLE_OPERATION_TIMEDOUT (vs) CURLE_COULDNT_CONNECT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 29 May 2016 00:11:24 +0200 (CEST)

On Wed, 25 May 2016, Praveen Pvs wrote:

> When we are not able to connect to server and timed out while trying to
> connect to server we get CURLE_COULDNT_CONNECT

Correct. This basically means that the connect() function fails. No TCP
connection could be established.

> When we are able to connect to host but got timed out while waiting for the
> response we get CURLE_OPERATION_TIMEDOUT

This return code is returned basically when _any_ timeout limit is reached
and libcurl returns prematurely because of that.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-29