curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Curl timeout option in milliseconds

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 14 Nov 2019 20:56:48 +0100 (CET)

On Thu, 14 Nov 2019, karthikeyan Sivakkumar wrote:

> 1. Setting the CURLOPT_TIMEOUT_MS to 1001... The timeout happens exactly
> after 1001 milliseconds.

That doesn't match what I see:

$ time curl -m 0.200 https://daniel.haxx.se/test/slow.cgi
curl: (28) Resolving timed out after 200 milliseconds

real 0m0.207s
user 0m0.009s
sys 0m0.000s

-- 
  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-11-14