Hi Daniel,

I am using the curl version 7.66.
The problem we are facing is like this.

1. Setting the CURLOPT_TIMEOUT_MS to 1001... The timeout happens exactly
after 1001 milliseconds.
2. Setting the CURLOPT_TIMEOUT_MS to 1000... The timeout happens exactly
after 1000 milliseconds.
3. Setting the CURLOPT_TIMEOUT_MS to 1512... The timeout happens exactly
after 1512 milliseconds.
4. Setting the CURLOPT_TIMEOUT_MS to any value < 1000 (say 200)... The
timeout happens exactly after 1000 milliseconds only.


On Thu, Nov 14, 2019 at 10:38 PM Daniel Stenberg <[email protected]> wrote:

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


-- 





Thanks,
Karthikeyan T S
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to