cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLMOPT_MAX_TOTAL_CONNECTIONS vs CURLMOPT_MAX_HOST_CONNECTIONS

From: Stefano D. Mtangoo <mwinjilisti_at_gmail.com>
Date: Thu, 13 Feb 2014 21:45:30 +0300

On 13/02/2014 06:23 alasiri, Daniel Stenberg wrote:
> On Thu, 13 Feb 2014, Stefano D. Mtangoo wrote:
>
>> Can someone enlighten me as to whats actual difference functionally?
>> AFAICS it looks same functionally but then why would both exist?
>
> CURLMOPT_MAXCONNECTS
>
> The maximum amount of connections that libcurl may hold in its
> connection
> cache. The connection cache being the pool of connections to hold
> open after
> use for subsequent transfers to possibly re-use for faster operations.
>
> CURLMOPT_MAX_TOTAL_CONNECTIONS
>
> The maximum amount of simultaneously open connections in total. This
> means
> that if you add more handles to a multi handle than this amount,
> libcurl
> will queue them up internally and not really start them until one of
> the
> previously added ones are completed so that the total number of
> connections
> is kept below this set number.
>
> They are thus related to each other but quite different.
I see. Thanks alot for clarification.
I was confusing them

-- 
Stefano D. Mtangoo
Mob: +255 754710410
Twitter: @mtangoo
Web. http://hosannahighertech.co.tz
Linkedin: http://www.linkedin.com/pub/stefano-mtangoo/45/644/281
/The purpose of man is to know his Maker Be known by his Maker
And make his Maker known So that others may know his Maker as their 
Maker(Emeal Zwayne) /

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-13