cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Libcurl dalays SYN (HTTP connection timeout)

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Tue, 27 Apr 2010 10:49:37 +0200

On Tue April 27 2010 10:27:50 conchi wrote:
> I invoke the curllib with two timeouts:
>
>
>
> curl_easy_setopt(m_pCURL, CURLOPT_TIMEOUT_MS, 2000);
>
> curl_easy_setopt(m_pCURL, CURLOPT_CONNECTTIMEOUT_MS, 2000);

The above looks wrong to me. CURLOPT_TIMEOUT_MS is the _total_ timeout,
including also the connection phase. So that the second option is
redundant. But I am not sure whether it's related to your problem.

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-27