On Fri, 4 Jan 2019, z zh wrote:

(Please don't top-post, it makes reading the conversation really hard.)

yes I set timeout by

   curl_easy_setopt(m_curl, CURLOPT_CONNECTTIMEOUT_MS, 2000);
   curl_easy_setopt(m_curl, CURLOPT_TIMEOUT_MS, 5000);

Okay, so you say that in spite of these settings curl_easy_perform() may block longer than 5 seconds?

Using the latest libcurl?

Do you make sure you pass the numerical values as *longs* and not ints? Ie typecast them:

   curl_easy_setopt(m_curl, CURLOPT_CONNECTTIMEOUT_MS, (long)2000);
   curl_easy_setopt(m_curl, CURLOPT_TIMEOUT_MS, (long)5000);

If both answers above are yes, then can you tell us how we can reproduce this? I assume it also reproduces with the curl command line tool?

--

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

Reply via email to