curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_timeout and curl_multi_wait

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 10 Jun 2017 11:14:26 +0200 (CEST)

On Fri, 9 Jun 2017, Mradula Nayak wrote:

> I am using 100 ms as timeout on curl_multi_wait.It runs fine with 100 ms. I
> am trying to optimize it so that the activity doesn't have to wait 100ms if
> there is no activity. I want to know thw optimal timeout for it, any
> suggestions how I can find it?

Optimal how? For your CPU it is more optimal to wait as long as you possibly
can. If you have something that needs to done every 50 ms, then you should use
50ms instead.

If curl_multi_wait() has no internal nor external socket to wait for at all,
it will return immediately.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-06-10