cURL / Mailing Lists / curl-library / Single Mail


limit connection cache growth on multi interface [PATCH]

From: Daniel Stenberg <>
Date: Wed, 30 May 2007 13:02:45 +0200 (CEST)


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

Thoughts or opinions on the patch or the cache size or related?

  Commercial curl and libcurl Technical Support:

Received on 2007-05-30