Revert "改名"

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