cURL / Mailing Lists / curl-library / Single Mail

curl-library

multi and hiper example update patch

From: Dirk Manske <dm_at_nonitor.de>
Date: Thu, 30 Sep 2010 12:33:54 +0200

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.

ghiper.c:
* replaced curl_multi_socket (that function is marked as obsolete) calls
  with curl_multi_socket_action calls (as in hiperfifo.c and evhiperfifo.c)

ghiper.c and evhiperfifo.c:
* be smart as hiperfifo.c, don't do uncessary curl_multi_* calls in
  new_conn and main

###

The patch could/should be broken into two or three parts, but now I'm
too lazy it fix it.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-09-30