Thanks for the reply. There is one thing I am not clear about. Does curl_multi_wait puts CPU to sleep while it is waiting? Or does it keep polling during the timeout?
On Jun 10, 2017 2:14 AM, "Daniel Stenberg" <[email protected]> wrote: > 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
