| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: libcurl 7.18.2: Question on CURLMOPT_MAXCONNECTS
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 27 Jun 2008 23:24:45 +0200 (CEST)
On Thu, 26 Jun 2008, Stefan Krause wrote:
> CURLMOPT_MAXCONNECTS is "the maximum amount of simultaneously open
No. It means that libcurl will not have more than CURLMOPT_MAXCONNECTS
> So, does that parameter in fact limit the number of sockets open at a
Not really, no.
> "Default is 10, and libcurl will enlarge the size for each added easy handle
Yes it would be 16. Logic taken from the source:
if((multi->num_easy * 4) > multi->connc->num) {
newmax = multi->num_easy * 4;
> What happens in case I set the CURLMOPT_MAXCONNECTS to 10 and then add 20
Yes, it'll just limit the number of connections it'll pool so when you close
-- / daniel.haxx.seReceived on 2008-06-27 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info