Skip to content

[HttpClient] Limit curl's connection cache size #60806

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues #60513
License MIT

Trying to accommodate for both #58278 and #60513

By default, $maxHostConnections is 6, so that this allows 50x6 = 300 connections max, which means one third of the typical ulimit -n (max open file descriptors), which is 1024.

We could allow setting both options separately, but for now, as a bugfix, this might be enough.

@nicolas-grekas nicolas-grekas merged commit c69616d into symfony:6.4 Jun 18, 2025
10 of 11 checks passed
@nicolas-grekas nicolas-grekas deleted the hc-maxc branch June 18, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants