From 56f42ac97b8f23df6d2eada985df1d58a555625a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 11 Jan 2022 15:34:27 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- AsyncClient.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }