Class CurlMultiProxy
Proxies requests and connections to a pool of internal curl_multi handles. Each recursive call will add requests
to the next available CurlMulti handle.
-
Guzzle\Common\AbstractHasDispatcher
implements
Guzzle\Common\HasDispatcherInterface
-
Guzzle\Http\Curl\CurlMultiProxy
implements
Guzzle\Http\Curl\CurlMultiInterface
Methods summary
public
|
#
__construct( integer $maxHandles = 3, float $selectTimeout = 1.0 )
Parameters
- $maxHandles
- The maximum number of idle CurlMulti handles to allow to remain open
- $selectTimeout
- timeout for curl_multi_select
|
public
Guzzle\Http\Curl\CurlMultiInterface
|
|
public
array
|
|
public
boolean
|
#
remove( Guzzle\Http\Message\RequestInterface $request )
Remove a request from the pool.
Remove a request from the pool.
Parameters
- $request
- Request to remove
Returns
boolean Returns true on success or false on failure
Implementation of
|
public
|
#
reset( boolean $hard = false )
Reset the state and remove any attached RequestInterface objects
Reset the state and remove any attached RequestInterface objects
Parameters
- $hard
- Set to true to close and reopen any open multi handles
Implementation of
|
public
|
|
public
|
|
protected
Guzzle\Http\Curl\CurlMulti
|
#
getAvailableHandle( )
Get an existing available CurlMulti handle or create a new one
Get an existing available CurlMulti handle or create a new one
Returns
|
protected
|
#
cleanupHandles( )
Trims down unused CurlMulti handles to limit the number of open connections
Trims down unused CurlMulti handles to limit the number of open connections
|