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 18:08:00 +0100 (CET)

On Thu, 14 Nov 2019, karthikeyan Sivakkumar via curl-library wrote:

> 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).

What curl version is that? Are you possibly building it to use the synchronous
name resolver? libcurl shouldn't have a problem with sub-second timeouts in
general.

-- 
  / 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