mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
Merge pull request #9 from silverstripe-labs/pulls/cpu-usage-curl-multi
Avoid 100% CPU on curl_multi_exec
This commit is contained in:
commit
9d930c1901
@ -45,7 +45,8 @@ class ExternalURLCheck implements EnvironmentCheck {
|
||||
// Execute the handles
|
||||
do {
|
||||
$mrc = curl_multi_exec($mh, $active);
|
||||
} while ($mrc == CURLM_CALL_MULTI_PERFORM);
|
||||
curl_multi_select($mh);
|
||||
} while ($active > 0);
|
||||
|
||||
while ($active && $mrc == CURLM_OK) {
|
||||
if (curl_multi_select($mh) != -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user