Skip to content

Commit

Permalink
fix php7.2.1 on CentOS7.2.1511 can't pull config
Browse files Browse the repository at this point in the history
  • Loading branch information
t1ger committed Dec 21, 2018
1 parent 524bda9 commit f68c964
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ApolloClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}

// 获取结果
Expand Down

0 comments on commit f68c964

Please # to comment.