private function CurlMulti::processMessages

Process any received curl multi messages

1 call to CurlMulti::processMessages()
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 451

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

private function processMessages() {

  // Get messages from curl handles
  while ($done = curl_multi_info_read($this->multiHandle)) {
    try {
      $request = $this->resourceHash[(int) $done['handle']];
      $handle = $this->handles[$request];
      $this
        ->processResponse($request, $handle, $done);
    } catch (\Exception $e) {
      $this
        ->removeErroredRequest($request, $e);
    }
  }
}