From 9c7355d7f629a11e3374a85cded051deac0b58d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 11 Jan 2022 15:33: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, 4 insertions(+), 2 deletions(-) diff --git a/AsyncClient.php b/AsyncClient.php index effa6c9..0c82fa0 100644 --- a/AsyncClient.php +++ b/AsyncClient.php @@ -109,10 +109,12 @@ class AsyncClient extends ClientAbstracts $array = $this->_parseHeaders($path); if ($this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content)) { - $receive = $this->waite($this->client, ''); + $receive = ''; + while ($tmp = $this->client->recv()) { + $receive .= $tmp; + } Kiri::getDi()->get(Logger::class)->debug($receive); - [$header, $body] = explode("\r\n\r\n", $receive); $header = explode("\r\n", $header);