This commit is contained in:
2021-12-11 16:43:44 +08:00
parent 9d24b3314b
commit 895533a04f
+1 -1
View File
@@ -81,7 +81,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, TRUE); $this->client = new SwowClient(SWOOLE_TCP, FALSE);
if ($isHttps || $this->isSSL()) { if ($isHttps || $this->isSSL()) {
$this->client->enableSSL(); $this->client->enableSSL();
} }