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.

Curl timeout option in milliseconds

From: karthikeyan Sivakkumar via curl-library <>
Date: Thu, 14 Nov 2019 22:07:09 +0530

Hi Team,

We have a developed a C application that makes a http/https call for third
party from fraud check using curl library.
Our client has a requirement to handle curl timeout of *200 milliseconds*.
I tried to use CURLOPT_TIMEOUT_MS option but from my test results I could
see that the minimum timeout value that can be given is 1000 milliseconds.
Even if I configure 200 milliseconds, the curl call times out only after 1
second (1000 milliseconds).
Is there any way to handle this requirement other than setting CURLOPT_NOSIGNAL
to 1 and handling the timeouts in the application level rather than using
curl options.
Also, I am wary of any other side effects that might occur going with the

Kindly advise me in handling this requirement in the best possible way.

Karthikeyan T S
Programmer Analyst.

Received on 2019-11-14