cURL / Mailing Lists / curl-library / Single Mail


Re: Connection and Response Timeout for Curl Handle

From: Daniel Stenberg <>
Date: Mon, 16 Mar 2015 18:18:26 +0100 (CET)

On Tue, 3 Mar 2015, Praveen Pvs wrote:

> I have set my connection time out to be 10 and response time out to be 10
> secs in my configuration. Following is the code snippet for settings these
> values to the curl handle.
> /* Set the connection timeout */
> curl_easy_setopt(locHandle, CURLOPT_CONNECTTIMEOUT, hostDef.conTimeOut);

Are you making sure this is a 'long' and nothing else?

> Please observe the logs of my application below, curl_easy_perform function
> is called at 09:01:58:433 and it returned value 6 at 09:02:54:479. it took
> close to 56 secs. I expect it to take 10 secs since conntimeout is set to
> 10. Am i missing something here?

Which platform is this and which libcurl version? If you use curl command line
tool on this URL, does it timeout appropriately or does it show the same

List admin:
Received on 2015-03-16