cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi interface perf question

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 6 Feb 2011 23:18:56 +0100 (CET)

On Fri, 4 Feb 2011, Alan Wolfe wrote:

> so i do have a select before my curl_multi_perform with a timeout of
> 10usecs.
>
> In theory i should be able to even set that to 0 usec's just to poll if
> there is data ready without even blocking for those 10 usecs.

No, the theory says you should use curl_multi_timeout() to figure out how long
timeout to use since libcurl also wants to be called even when nothing
happens.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-06