public array
$pauseExpiries =
[];
public int
$execCounter = \PHP_INT_MIN;
public ?LoggerInterface
$logger = null;
public static array
$curlVersion;
public function __construct(int
$maxHostConnections, int
$maxPendingPushes) { self::
$curlVersion ??=
curl_version();
$this->handle =
curl_multi_init();
$this->dnsCache =
new DnsCache();
$this->
reset();
// Don't enable HTTP/1.1 pipelining: it forces responses to be sent in order
if (\
defined('CURLPIPE_MULTIPLEX'
)) { curl_multi_setopt($this->handle, \CURLMOPT_PIPELINING, \CURLPIPE_MULTIPLEX
);
} if (\
defined('CURLMOPT_MAX_HOST_CONNECTIONS'
)) { $maxHostConnections =
curl_multi_setopt($this->handle, \CURLMOPT_MAX_HOST_CONNECTIONS, 0 <
$maxHostConnections ?
$maxHostConnections : \PHP_INT_MAX
) ? 0 :
$maxHostConnections;
} if (\
defined('CURLMOPT_MAXCONNECTS'
) && 0 <
$maxHostConnections) { curl_multi_setopt($this->handle, \CURLMOPT_MAXCONNECTS,
$maxHostConnections);
}