curl-library
RE: Limiting the number of active connections/transfers.
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Apr 2011 08:30:14 +0200 (CEST)
Date: Tue, 5 Apr 2011 08:30:14 +0200 (CEST)
On Mon, 4 Apr 2011, Vladimir Grishchenko wrote:
>> Since you can only do one connection at a time with the easy interface, the
>> logic is easier: CURLOPT_MAXCONNECTS sets the maximum amount of connections
>> that will be kept in the pool (and it will always be at least one).
>
> I failed to mention there will be multi-threading, one thread per e-handle,
> hence my example with several handles.
That makes no difference to libcurl, as when you use the easy interface each
easy handle maintain its own connection pool with the limits as I desribed.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-04-05