Class Guzzle\Plugin\Backoff\CurlBackoffStrategy

InheritanceGuzzle\Plugin\Backoff\CurlBackoffStrategy » Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy » Guzzle\Plugin\Backoff\AbstractBackoffStrategy
ImplementsGuzzle\Plugin\Backoff\BackoffStrategyInterface

Strategy used to retry when certain cURL error codes are encountered.

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getDelay() Guzzle\Plugin\Backoff\CurlBackoffStrategy

Property Details

$defaultErrorCodes protected static property

Default cURL errors to retry

protected static array $defaultErrorCodes = [CURLE_COULDNT_RESOLVE_HOSTCURLE_COULDNT_CONNECTCURLE_PARTIAL_FILECURLE_WRITE_ERRORCURLE_READ_ERRORCURLE_OPERATION_TIMEOUTEDCURLE_SSL_CONNECT_ERRORCURLE_HTTP_PORT_FAILEDCURLE_GOT_NOTHINGCURLE_SEND_ERRORCURLE_RECV_ERROR]

Method Details

getDelay() protected method

protected void getDelay ( $retries, Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response null, Guzzle\Http\Exception\HttpException $e null )
$retries
$request
$response
$e