curl-library
limit connection cache growth on multi interface [PATCH]
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 30 May 2007 13:02:45 +0200 (CEST)
Received on 2007-05-30
Date: Wed, 30 May 2007 13:02:45 +0200 (CEST)
Hey
When using the multi interface the connection cache is made to grow for each
new easy handle that is added, to hold up to 4 * easy_handles.
This patch introduces the new setting CURLMOPT_MAXCONNECTS to allow an app to
set a max number of entries in the cache.
Possibly we should rather change the default algorithm to instead be something
like "10 + easy_handles" since this excessive amount might be a bit too
silly...
Thoughts or opinions on the patch or the cache size or related?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
- TEXT/PLAIN attachment: multi-maxconnects.patch