curl-library
Re: grokking 10000 multi connections
Date: Wed, 16 Feb 2005 22:38:10 +0000
Daniel Stenberg wrote:
> >Secondly, is it ok for the application to call curl_multi_sockperf() more
> >than once in succession, to pass it actions a few at a time rather than
> >causing a single potentially very long call?
>
> That sounds like a very good idea.
>
> I've tried to decide on the best way to provide this set of file
> descriptors to the function, but I haven't really come up with any
> brilliant ideas.
>
> You have a suggestion?
In the extreme, each call to curl_multi_sockper() could process just
one descriptor.
Then the interface is two integers:
curl_multi_sockper(int the_descriptor, int ready_flags);
(There's no advantage to a more complex function which takes a list,
because that would just iterate over the list and call a function like
the above anyway - and force the application to generate a temporary,
unnecessary list too.)
-- Jamie
Received on 2005-02-16