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(); }