cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: questions about multi API

From: Gary Maxwell <gmaxwell_at_casabi.com>
Date: Wed, 1 Jul 2009 02:49:38 -0700

Daniel Stenberg wrote:

> On Wed, Jul 1, 2009 at 11:22, Mohun Biswas<m_biswas_at_mailinator.com>
> wrote:
>
> > And as Daniel points out the loop is not required, it's just quite
> common. I
> > guess the point is it's the right thing to do iff all your important
> work is
> > being done by the libcurl multi API.
>
> But also, the times libcurl returns CURLM_CALL_MULTI_PERFORM calling
> it again to do the next action shouldn't add up to a lot extra, so in
> the end you will hardly ever notice that while loop in your app
> anyway.
>
> I think that return code was perhaps a mistake to introduce, and a
> future version of libcurl might just take care of that looping
> internally instead to simplify the API somewhat.

I'm not sure that's a good idea. The app may want to do something "more
important" even if libcurl returns CURLM_CALL_MULTI_PERFORM, IMHO.

GaryM at Casabi.
Received on 2009-07-01