Skip to content

Commit

Permalink
Merge pull request #18 from t1ger/apollo-php
Browse files Browse the repository at this point in the history
fix php7.2.1 on CentOS7.2.1511 can't pull config
  • Loading branch information
xiaodx12 authored Dec 27, 2018
2 parents 524bda9 + f68c964 commit 497dd46
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 497dd46

Please # to comment.