Re-enable push support for HttpClient

This commit is contained in:
Kévin Dunglas 2019-09-11 09:53:13 +02:00
parent 27383a5ca8
commit 8483842888
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6

View File

@ -55,7 +55,7 @@ final class CurlHttpClient implements HttpClientInterface, LoggerAwareInterface
*
* @see HttpClientInterface::OPTIONS_DEFAULTS for available options
*/
public function __construct(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 0)
public function __construct(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50)
{
if (!\extension_loaded('curl')) {
throw new \LogicException('You cannot use the "Symfony\Component\HttpClient\CurlHttpClient" as the "curl" extension is not installed.');