node-libcurl icon indicating copy to clipboard operation
node-libcurl copied to clipboard

Connection cache size

Open iamoskvin opened this issue 1 year ago • 1 comments

I am using only curly API in my code. So, I think that for each curly request it creates additional easy_handle and adds it to common multi_handle. So, according to libcurl documentation the total connection cache size should be 4* easy_handle amount. So, I should not see connection cache size limits. But I am regularly see in the logs "Connection cache is full, closing the oldest one" https://curl.se/libcurl/c/CURLMOPT_MAXCONNECTS.html

What is my mistake? Why do I meet this? Thank you.

iamoskvin avatar Nov 18 '24 17:11 iamoskvin

We do not set any value for that option, so it should fallback to libcurl's default behavior, which is the one you mentioned above. 🤔

JCMais avatar Nov 20 '24 12:11 JCMais

with 5.0.0 there will be a way to define a easy handle pool for curly, which should help with caching

JCMais avatar Nov 09 '25 20:11 JCMais