curl-library
Re: curl_multi_timeout and curl_multi_wait
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 9 Jun 2017 23:55:32 +0200 (CEST)
Date: Fri, 9 Jun 2017 23:55:32 +0200 (CEST)
On Fri, 9 Jun 2017, Mradula Nayak via curl-library wrote:
> I am trying to determine the timeout for my curl_multi_wait. I was thinking
> of using curl_multi_timout to get the maximum time to wait for and then use
> that timeout for curl_multi_wait. Is this approach correct?
curl_multi_timout() already uses the "maximum time to wait" (for tranfer
purposes on that multi handle) internally so that it will never wait longer
than what's suitable. The timeout you should pass to this function is the
maximum time your app is fine to have the function lock up.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-06-09