From aed0e6153180e2307c42f6c8c09a35768242fa4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 11 Jan 2022 15:38:56 +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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AsyncClient.php b/AsyncClient.php index 828a167..e0dcd78 100644 --- a/AsyncClient.php +++ b/AsyncClient.php @@ -110,6 +110,9 @@ class AsyncClient extends ClientAbstracts $this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content); $receive = $this->client->recv(); + if ($tmp = $this->client->recv()) { + $receive .= $tmp; + } Kiri::getDi()->get(Logger::class)->debug($receive); [$header, $body] = explode("\r\n\r\n", $receive);