Gateway Client组件每隔段时间自动提示错误信息

原文: Warning: stream_socket_client(): unable to connect to tcp://10.5.0.4:1238 (Connection timed out) in /home/mail/GatewayWorker/Lib/Gateway.php on line 676 exception 'Exception' with message 'Can not connect t...

笑天 发表与 2016-09-04 5119 浏览 1 回答
Gateway 在触发onClose的回调时,无法获取session的数据.[已解决]

如题,这样无法判断客户端是谁了. 能否在调用完onClose回调时候再清理session的数据呢. ...

笑天 发表与 2016-08-21 3863 浏览 2 回答
onMessage在http协议下为什么会被请求两次?

代码如下: $serv = new Worker("http://0.0.0.0:80"); $serv->name = 'httpServer'; $serv->count = 4; $serv->onMessage = function($con, $msg) { var_dump('111'); }; 请求一次会打印出2个结果.这是咋回事...

笑天 发表与 2016-07-08 4235 浏览 4 回答
on回调函数内的流程能立即被重启吗?

现在是这样: 一个worker下面有2个进程 进程1:处理繁杂的阻塞任务. 进程2:基于channel的worker进程重启信号接收 我想进程2订阅事件,进程2接收到事件,进行Worker::stopAll();按道理应该是进程1跟进程2都重启是吧? 但是因为进程1是阻塞任务, 当进程被阻塞时不会立即处理,请问这个应该怎么处理比较妥当呢? 还有我想请教下,有什么办法可以做到远程实时对所有的worker进程进行重启呢?...

笑天 发表与 2016-07-06 2192 浏览 1 回答
分布式通讯组件重复注册事件的问题 -已解决

使用on函数回调注册事件A 组件服务端会收到2次subscribe请求. 因为我想对这个组件进行二次开发,目的是为了某个事件在被注册的同时立马对该事件进行publish.但是我测试发现每次该事件的回调都会被执行2次.请问这个能给个解决方案吗? ====================是代码问题=======修改如下=========== 修改Client.php文件中的函数onRemoteConnect为: /** ...

笑天 发表与 2016-07-05 3093 浏览 1 回答
GatewayConnection Error : 1 ,connect fail

GatewayConnection Error : 1 ,connect fail 出现这个错误...

笑天 发表与 2016-06-11 4505 浏览 3 回答
GateWayWorker 在相同用户加入多个Group组之后,会收到重复消息

用户A如果同时加入组1跟组2; 如果用Gateway::sendToGroup(array(1,2),$Msg),该用户则会收到2条相同的消息.请问能在发送消息之前自动去除相同用户吗...

笑天 发表与 2016-05-05 3107 浏览 1 回答
Warning: strlen() expects parameter 1 to be string, array given in Websocket.php on line 226

频繁刷新出现如下问题: Warning: strlen() expects parameter 1 to be string, array given in /home/wwwroot/gatewayworker/Workerman/Protocols/Websocket.php on line 226...

笑天 发表与 2016-05-03 4627 浏览 1 回答
Channel/Client的publish过程是阻塞方式吗?

现在一个业务模型如下: worker0:创建httpWorker, 地址:127.0.0.1:1188 创建进程Server worker1:onWorkerStart回调中异步请求httpWorker, 在异步请求中的onClose方法中调用Worker::stopAll无限重启进程直到连接上httpWorker; 在worker1中的onWorkerStart回调中注册channel/client方法A, wor...

笑天 发表与 2016-05-01 2852 浏览 1 回答
Notice: fwrite(): send of 8 bytes failed with errno=32 Broken pipe in

gateWayworker下面用GlobalData 一段时间就出这个提示: Notice: fwrite(): send of 8 bytes failed with errno=32 Broken pipe in /home/wwwroot/gatewayworker/GlobalData/src/Client.php on line 70...

笑天 发表与 2016-04-29 5596 浏览 1 回答
Waring channel connection closed and try to reconnect

用了线程通讯组建之后, publish之后无限提示这个问题...Waring channel connection closed and try to reconnect...

笑天 发表与 2016-04-28 4772 浏览 2 回答
PHP Warning: socket_set_option(): unable to set socket option [22]:

PHP Warning: socket_set_option(): unable to set socket option :Invalid argument in /Workerman/Connection/AsyncTcpConnection.php on line 123 在mac系统下出现这个问题! 请问怎么解决呢?...

笑天 发表与 2016-04-27 3730 浏览 2 回答
workerman能跟nginx结合使用吗? 即workername跑动态,nginx输出静态文件

如题,请问大大这个可行吗?可行的话怎么实现呢?...

笑天 发表与 2016-02-15 4829 浏览 3 回答
Fatal error: Call to a member function close() 运行一段时间就会出现这个问题

请问大大, 这个问题是正常吗? "Fatal error: Call to a member function close() on null in /home/msg/vendor/workerman/phpsocket.io/src/Engine/Transports/WebSocket.php on line 46" 用的是web-msg-sender消息推送框架...

笑天 发表与 2016-02-03 3884 浏览 1 回答
"transport closed" 请问这个代表什么意思呢?

...

笑天 发表与 2016-01-23 3221 浏览 1 回答
AsyncTcpConnection 无法在while命令下运行吗?

代码: while($data = redis::lblpop('msg')){ $con = new AsyncTcpConnection('txt://127.0.0.1:123'); $con->send($data); $con->onMessage = function(){ ........ } }...

笑天 发表与 2016-01-20 2658 浏览 4 回答
一个进程中可以循环异步AsyncTcpConnection连接吗

本人是菜鸟级别,请问大大,我开始是通过使用timer循环获取$data参数内容然后异步,因为在同一时间而且是同一个进程内特别多$data内容相同的,所以想同一时间多次异步处理.代码如下: $data = json_encode(array('a'=>1)); for ($i=0; $i < 3; $i++) { $con = new AsyncTcpConnection('txt://127.0.0...

笑天 发表与 2016-01-19 3483 浏览 2 回答

笑天

1730
积分
0
获赞数
0
粉丝数
2016-01-19 加入
🔝