Skip to content

Commit

Permalink
Define missing CURL constant
Browse files Browse the repository at this point in the history
  • Loading branch information
edamov committed Apr 4, 2020
1 parent 207f38f commit c8d48ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c8d48ff

Please sign in to comment.