Class Guzzle\Http\Curl\CurlMultiProxy

InheritanceGuzzle\Http\Curl\CurlMultiProxy » Guzzle\Common\AbstractHasDispatcher
ImplementsGuzzle\Common\HasDispatcherInterface, Guzzle\Http\Curl\CurlMultiInterface

Proxies requests and connections to a pool of internal curl_multi handles. Each recursive call will add requests to the next available CurlMulti handle.

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
cleanupHandles() Trims down unused CurlMulti handles to limit the number of open connections Guzzle\Http\Curl\CurlMultiProxy
getAvailableHandle() Get an existing available CurlMulti handle or create a new one Guzzle\Http\Curl\CurlMultiProxy

Property Details

$groups protected property
protected $groups = []
$handles protected property
protected $handles = []
$maxHandles protected property
protected $maxHandles null
$queued protected property
protected $queued = []
$selectTimeout protected property
protected $selectTimeout null

Method Details

__construct() public method

public void __construct ( $maxHandles 3, $selectTimeout 1.0 )
$maxHandles int

The maximum number of idle CurlMulti handles to allow to remain open

$selectTimeout float

Timeout for curl_multi_select

add() public method

public void add ( Guzzle\Http\Message\RequestInterface $request )
$request
all() public method

public void all ( )
cleanupHandles() protected method

Trims down unused CurlMulti handles to limit the number of open connections

protected void cleanupHandles ( )
count() public method

public void count ( )
getAvailableHandle() protected method

Get an existing available CurlMulti handle or create a new one

protected Guzzle\Http\Curl\CurlMulti getAvailableHandle ( )
remove() public method

public void remove ( Guzzle\Http\Message\RequestInterface $request )
$request
reset() public method

public void reset ( $hard false )
$hard
send() public method

public void send ( )