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::perform in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Get the data from the multi handle

File

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

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[] = $e;
  $this
    ->remove($request);
  $request
    ->setState(RequestInterface::STATE_ERROR);
  $this
    ->dispatch(self::MULTI_EXCEPTION, array(
    'exception' => $e,
    'all_exceptions' => $this->exceptions,
  ));
}