diff --git a/src/Client.php b/src/Client.php index 4259d20..5821946 100644 --- a/src/Client.php +++ b/src/Client.php @@ -94,6 +94,10 @@ public function push(): array define('CURLPIPE_MULTIPLEX', 2); } + if (!defined('CURLMOPT_MAX_HOST_CONNECTIONS')) { + define('CURLMOPT_MAX_HOST_CONNECTIONS', 7); + } + curl_multi_setopt($this->curlMultiHandle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); curl_multi_setopt($this->curlMultiHandle, CURLMOPT_MAX_HOST_CONNECTIONS, $this->maxConcurrentConnections); }