windows下安装libevent后,AsyncTcpConnection不停触发onConnect

<?php use Workerman\Worker; use Workerman\Connection\AsyncTcpConnection; require_once __DIR__ . '/Workerman/Autoloader.php'; require_once __DIR__ . '/Channel/src/Client.php'; $worker = new Worker(); $wor...

bgyh2003 发表与 2018-01-30 2885 浏览 2 回答
多进程下,是否可以把每个进程客户连接的connection保存到主进程变量

如下代码是否可行 $worker = new Worker('websocket://0.0.0.0:2000'); $worker->count = 2; $AllConnections = array();//记录所有连接,键名为uid $worker->onConnect = function($connection) global $worker,$AllConne...

bgyh2003 发表与 2018-01-24 2593 浏览 1 回答

bgyh2003

1960
积分
0
获赞数
0
粉丝数
2018-01-24 加入
×
🔝