protected function CurlMulti::removeErroredRequest

Remove a request that encountered an exception

Parameters

RequestInterface $request Request to remove:

\Exception $e Exception encountered:

2 calls to CurlMulti::removeErroredRequest()
CurlMulti::beforeSend in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Prepare for sending
CurlMulti::processMessages in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Process any received curl multi messages

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php, line 501

Class

CurlMulti
Send { This implementation allows callers to send blocking requests that return back to the caller when their requests complete, regardless of whether or not previously sending requests in the curl_multi object have completed. The implementation…

Namespace

Guzzle\Http\Curl

Code

protected function removeErroredRequest(RequestInterface $request, \Exception $e) {
  $this->exceptions[] = array(
    'request' => $request,
    'exception' => $e,
  );
  $this
    ->remove($request);
  $request
    ->setState(RequestInterface::STATE_ERROR);
  $this
    ->dispatch(self::MULTI_EXCEPTION, array(
    'exception' => $e,
    'all_exceptions' => $this->exceptions,
  ));
}