diff --git a/AsyncClient.php b/AsyncClient.php index 0c82fa0..c324474 100644 --- a/AsyncClient.php +++ b/AsyncClient.php @@ -110,7 +110,11 @@ class AsyncClient extends ClientAbstracts if ($this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content)) { $receive = ''; - while ($tmp = $this->client->recv()) { + while (true) { + $tmp = $this->client->recv(); + if (empty($tmp)) { + break; + } $receive .= $tmp; }