diff --git a/src/Hprose/Http/Client.php b/src/Hprose/Http/Client.php index 216f043a..f9f3b5b6 100644 --- a/src/Hprose/Http/Client.php +++ b/src/Hprose/Http/Client.php @@ -336,6 +336,11 @@ public function loop() { --$count; if ($msgs_in_queue === 0) break; } + + // See https://bugs.php.net/bug.php?id=61141 + if (curl_multi_select($multicurl) === -1) { + usleep(100); + } } } catch (Exception $e) {