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.
This commit is contained in:
Miguel Ángel Durán González
2015-01-08 21:57:41 +01:00
parent 3d03d25d5a
commit 224eab6eab
+1
View File
@@ -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);