swoole_client does not respond when accessed by apache
Follow the documentation
Synchronously blocking the client
$client = new swoole_client(SWOOLE_SOCK_TCP);
if (!$client->connect('127.0.0.1', 9501, -1))
{
exit("connect failed. Error: {$client->errCode}\n");
}
$client->send("hello world\n");
echo $client->recv();
$client->close();
Only the synchronous client can be used in the php-fpm/apache environment
Only the prefork multi-process mode is supported in the apache environment, and prework multi-threading is not supported
I am using the synchronous blocking client, but there is no response when accessing
Does not support Apache multi-threading mode.