同时在线1000部设备Gateway报错

错误1: Warning: system call select exceeded the maximum number of connections 1024, please install event/libevent extension for more connections. 错误2: Notice: fwrite(): send of 169 bytes failed with errno=11 Reso...

程序gg了 发表与 2020-04-26 3334 浏览 1 回答
gateway中使用mysql

gateway使用mysql示例:http://doc2.workerman.net/mysql.html 我想在start_gateway.php中查询数据库,然后继续在events.php中使用要怎么做 ? start_gateway.php我现在是使用file_get_content去GET查询数据库。 <?php /** * This file is part of workerman. * *...

程序gg了 发表与 2020-04-24 3138 浏览 2 回答
已解决:gateway中$connection能不能给$client_id传递参数?

start_gateway.php 中 $connection->onWebSocketConnect = function($connection , $http_header) 这里得$connection能不能给events.php 中得$client_id传递参数?...

程序gg了 发表与 2020-04-24 1597 浏览 1 回答
status后,断开的连接还在connection中显示

使用类方法作为回调。 DB数据库用的TP的DB类。 设备断开后,connection 不会减少...

程序gg了 发表与 2019-11-26 2678 浏览 1 回答
请问在thinkphp中workerman连接资源如何在不同模块之间共享

tp5中 workerman服务端写在 push模块的某个控制器里,我想在 index模块的某个控制器中调用 workerman服务端的方法,比如在 index模块 下的 user控制器 里调用$con->send(),主动向客户端发送消息,请问要怎么做呀!就是想把连接成功后的对象存起来,给其它模块控制器调用,尝试过 global, 打印出来是 null...

oshell 发表与 2019-04-05 2447 浏览 2 回答
thinkphp5.1直接用控制器启动workerman可以吗

直接用tp的控制器来启动workerman可以吗。 是否会影响TP的性能,导致其他控制器访问的时候加载慢? 在workerman的定时器中使用TP的数据库类是否会影响TP正在操作的业务?...

程序gg了 发表与 2019-04-05 3868 浏览 1 回答

程序gg了

859
积分
0
获赞数
0
粉丝数
2019-04-05 加入
🔝