| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Re: Undocumented curl_multi_select usage
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 May 2009 23:45:22 +0200 (CEST)
On Fri, 29 May 2009, Massimo Lombardo wrote:
> I was reading curl_multi_init documentation on php.net [1] when a comment by
Welcome to the area between two chairs. The chairs being PHP and libcurl and
Neither the cURL project nor the PHP gives this binding the amount of love it
> Eddie basically says that using a while loop/curl_multi_exec combo should be
Eddie is right. A busy-loop is never a good idea. curl_multi_select+
> - curl_multi_select documentation page on php.net [3] can be quite
This is the PHP team's docs. I'm quite sure they will appreciate help though.
> - curl_multi_fdset man page on curl.haxx.se [4] does not provide any
Uh. You're talking about docs for the libcurl C API. In what wat is the
I protest against you calling this a "doh" in any sense from a libcurl hacker
> - the "multi" example published at [5] uses the while
If anyone provides a better example, I'll happily replace what we show there.
> - curl_multi_perform man page on curl.haxx.se, in the "Typical Usage"
And now you're again mixing APIs. That's the C API docs while [5] is PHP. I'm
And again: nobody provided me with a better or alternative example for [5].
> (Where I live, we use to call four dohs in a row an epic fail, but being
I agree completely. I find it fascinating that such a well-used and widely
Stop waiting. Fix the problems and post your patches.
> So my question is: is the while loop/curl_multi_exec combo the unique
That's an approach that will keep the code busy-looping like mad until all
> If Eddie was right, how should we use curl_multi_select?
He is right but I don't know how to use that function.
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2009-05-29 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info