php - swoole_client does not respond when accessed by apache
滿天的星座
滿天的星座 2017-05-16 13:07:06
0
1
606

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

滿天的星座
滿天的星座

reply all(1)
Peter_Zhu

Does not support Apache multi-threading mode.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template