Skip to content

Commit 224eab6

Browse files
committed
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.
1 parent 3d03d25 commit 224eab6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Curl/Curl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function get($url_mixed, $data = array())
8888
}
8989

9090
do {
91+
curl_multi_select($curl_multi);
9192
$status = curl_multi_exec($curl_multi, $active);
9293
} while ($status === CURLM_CALL_MULTI_PERFORM || $active);
9394

0 commit comments

Comments
 (0)