curl-library
Re: single thread with multi or multiple threads with easy+share+openssl locking?
Date: Thu, 27 Feb 2014 16:01:54 +0100
On 2/27/2014 1:16 PM, Yehezkel Horowitz wrote:
>
> I assume there might be other things, but the first come to my mind
> is the reuse of the connections.
>
> If some of your URLs are to the same host:port, you can benefit the
> re-usage of TCP connections which is seamlessly managed by
> curl_multi_ API (of course you can disable the re-use if needed).
Do I read this correctly: does this mean that even when you are not
explicitly re-using easy objects multi still takes case of persistance
over various calls?
> With your multi-threaded approach, you'll need to assign URLs to the
> same host:port to the same thread in order to re-use connections ( =
> manage the re-use by yourself).
True, that would be a bit of an issue...
- Bram
-- Bram de Jong Senior Developer Native Instruments GmbH +49-30-611035-1845 ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-02-27