Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection cache size #419

Open
iamoskvin opened this issue Nov 18, 2024 · 1 comment
Open

Connection cache size #419

iamoskvin opened this issue Nov 18, 2024 · 1 comment

Comments

@iamoskvin
Copy link

iamoskvin commented Nov 18, 2024

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.

@JCMais
Copy link
Owner

JCMais commented Nov 20, 2024

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. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants