cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [SAD TRUTH] does curl_multi handle can be accessed from 2 threads?

From: Richard Atterer <richard_at_2006.atterer.net>
Date: Fri, 8 Sep 2006 15:49:13 +0200

On Thu, Sep 07, 2006 at 11:05:51PM +0200, Daniel Stenberg wrote:
> When using the multi interface to transfer multiple files, it doesn't
> make any sense to split it up into multiple threads. If using many
> threads is your game, then I suggest you instead simply use indivual easy
> transfers in each thread.

I agree that this may be the basic misunderstanding. Because of the use of
select(), libcurl can perform a large number of concurrent downloads in one
thread.

Cheers,

  Richard

-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key: 888354F7
  | \/¯|  http://atterer.net  |  08A9 7B7D 3D13 3EF2 3D25  D157 79E6 F6DC 8883 54F7
  ¯ '` ¯
Received on 2006-09-08