Skip to content

Update http_client.rst : standalone HttpClient max host connections param #14236

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
Sep 14, 2020

Conversation

ybenhssaien
Copy link
Contributor

As the signature of create method : public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface

The max host connection should be passed as the second param to this method instead of an option.

@javiereguiluz
Copy link
Member

Good catch Youssef! This is true since Symfony 4.4 (see https://github.com/symfony/symfony/blob/e368bb4517ee53c28c7f36bd4566168df2212a1f/src/Symfony/Component/HttpClient/HttpClient.php#L30) so we're merging this in 4.4 and upper branches. Thanks!

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.

3 participants