Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-11 15:25:22 +08:00
parent b92ab0bf1d
commit e19536ce99
+1 -3
View File
@@ -79,9 +79,7 @@ class AsyncClient extends ClientAbstracts
private function generate_client($data, $host, $isHttps, $path): void
{
$this->client = new SwowClient(SWOOLE_TCP, FALSE);
$this->client->set(array_merge($this->settings(), [
'open_http_protocol' => true
]));
$this->client->set(array_merge($this->settings()));
if (!$this->client->connect($host, $this->getPort())) {
throw new Exception('链接失败');
}