public function CurlMulti::__construct

File

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

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

public function __construct() {

  // You can get some weird "Too many open files" errors when sending a large amount of requests in parallel.These
  // two statements autoload classes before a system runs out of file descriptors so that you can get back
  // valuable error messages if you run out.
  class_exists('Guzzle\\Http\\Message\\Response');
  class_exists('Guzzle\\Http\\Exception\\CurlException');
  $this
    ->createMultiHandle();
}