cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: one progress only on multi_handle?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 5 Nov 2012 13:21:16 +0100 (CET)

On Mon, 5 Nov 2012, huancong deng wrote:

> in one progress , can i have two or more multi_handle????

You can have as many multi handles as you like. curl_multi_perform() and the
others only operate on a single handle, but there's nothing that prevents you
from serially invoking that function on a number of handles or even using
threads.

Using multiple multi handles in a single thread will most probably not be a
smart thing though since lots of caches are kept per multi handle and thus
benefits from as many easy handles as possible using the same multi handle.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-05