From 788ecee65d347c9425fa6f471276e032b3684541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 11 Jan 2022 15:08:18 +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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AsyncClient.php b/AsyncClient.php index 90a8a44..b31595f 100644 --- a/AsyncClient.php +++ b/AsyncClient.php @@ -115,7 +115,14 @@ class AsyncClient extends ClientAbstracts } } $this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content); - $receive = $this->client->recv(); + $receive = ''; + while (true) { + $_tmp = $this->client->recv(); + if (empty($receive)) { + break; + } + $receive .= $_tmp; + } Kiri::getDi()->get(Logger::class)->debug($receive);