diff --git a/src/ApolloClient.php b/src/ApolloClient.php index d78b6c0..cb5f5df 100644 --- a/src/ApolloClient.php +++ b/src/ApolloClient.php @@ -134,11 +134,13 @@ public function pullConfigBatch(array $namespaceNames) { } while ($mrc == CURLM_CALL_MULTI_PERFORM); while ($active && $mrc == CURLM_OK) { - if (curl_multi_select($multi_ch) != -1) { - do { - $mrc = curl_multi_exec($multi_ch, $active); - } while ($mrc == CURLM_CALL_MULTI_PERFORM); + if (curl_multi_select($multi_ch) == -1) { + usleep(100); } + do { + $mrc = curl_multi_exec($multi_ch, $active); + } while ($mrc == CURLM_CALL_MULTI_PERFORM); + } // 获取结果