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 <>
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
curl: (28) Resolving timed out after 200 milliseconds

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

  / | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
Received on 2019-11-14