From 224eab6eab84ea1c0ee07776d46ddf5c8c01860d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Dur=C3=A1n=20Gonz=C3=A1lez?= Date: Thu, 8 Jan 2015 21:57:41 +0100 Subject: [PATCH] Fixed cpu draining with parallel requests Why not add that call so it stops the loop if curl is not ready? That way the loop won't take all the available cpu. --- src/Curl/Curl.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 732315f..a276d9b 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -88,6 +88,7 @@ class Curl } do { + curl_multi_select($curl_multi); $status = curl_multi_exec($curl_multi, $active); } while ($status === CURLM_CALL_MULTI_PERFORM || $active);