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 )
Parameters
- $maxHandles
integer $maxHandles The maximum number of idle CurlMulti handles to allow to remain open
|
public
Guzzle\Http\Curl\CurlMultiInterface
|
|
public
array
|
|
public
boolean
|
|
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
boolean $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
|