cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi and hiper example update patch

From: Tor Arntsen <tor_at_spacetec.no>
Date: Thu, 30 Sep 2010 12:48:01 +0200

On Thu, Sep 30, 2010 at 12:33, Dirk Manske <dm_at_nonitor.de> wrote:
> Hi there.
>
> Here comes a patch to update the multi and hiper examples. Changes:
>
> all multi and hiper examples:
> * don't loop curl_multi_perform calls, that was <7.20.0 style, currently
>  the exported multi functions will not return CURLM_CALL_MULTI_PERFORM
>
> all hiper examples:
> * renamed check_run_count to check_multi_info
> * don't compare current running handle count with previous value, this
>  was the wrong way to check for finished requests, simply call
>  curl_multi_info_read
> * it's also save to call curl_multi_remove_handle inside the
>  curl_multi_info_read loop.

You probably mean 'safe' and not 'save' above.. I mention this as it's
before the '---' line in the patch you attached, so it would be part
of the commit comment.

-Tor
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-30