From bc5f9b1085a9d050fa06af7900d7e395071704c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 11 Jan 2022 14:51:50 +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 | 2 ++ TSwooleClient.php | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/AsyncClient.php b/AsyncClient.php index 78ae54a..8c62339 100644 --- a/AsyncClient.php +++ b/AsyncClient.php @@ -113,6 +113,8 @@ class AsyncClient extends ClientAbstracts $this->client->send(implode("\r\n", $array) . "\r\n\r\n" . $content); $receive = $this->client->recv(); + var_dump($receive); + [$header, $body] = explode("\r\n\r\n", $receive); $header = explode("\r\n", $header); diff --git a/TSwooleClient.php b/TSwooleClient.php index 96f79cc..cf12a5d 100644 --- a/TSwooleClient.php +++ b/TSwooleClient.php @@ -17,10 +17,7 @@ trait TSwooleClient $sslKey = $this->getSslKeyFile(); $sslCa = $this->getCa(); - $params = [ - 'open_eof_check' => true, - 'package_eof' => "\r\n\r\n" - ]; + $params = []; if ($this->getConnectTimeout() > 0) { $params['timeout'] = $this->getConnectTimeout(); }