GatewayWorker icon indicating copy to clipboard operation
GatewayWorker copied to clipboard

Distributed realtime messaging framework based on workerman.

Results 22 GatewayWorker issues
Sort by recently updated
recently updated
newest added

Hi Walkor, How can we find out how many clients are connected to each Gateway and Business Worker. Thanks Abhinav

Hi Walkor, Can you provide an example how we can create round robin schedule algorithm for multiple business worker? https://www.workerman.net/doc/gateway-worker/router.html#%E8%8C%83%E4%BE%8B%201%20%E9%9A%8F%E6%9C%BA%E8%B7%AF%E7%94%B1 Thanks Abhinav

Hi Walkor, How can we do the multiple socket like workerman in gateway worker solution. Can you send me the example. #https://github.com/walkor/workerman/issues/479 Thank you

Hi Walkor, 1. Can we identify the message inside gateway worker before it sends to business worker? 2. Can we bind a gateway to one of the business worker running...

生产环境使用php-8.1.2时数字序号占位绑定报错,经排查调整需要在 DbConnection::execute 方法下进行类型转换,并且catch块处理有点问题,PDOException::$errorInfo 只有一个元素。 if ($parameters[0][0] !== ':') { $parameters[0] = intval($parameters[0]); } 完整代码: /** * 执行 * * @param string $query * @param string $parameters * @throws PDOException */...

Hi Walkor, Currently we are using workerman in our current project and now we want to scale our socket server using GatewayWorker. We are thinking to use multiple gateway and...

你好,每次restart或者reload 服务,client_id都会从00000001 开始重新开始,能否有办法让client_id生成类似uuid的永久不会重复的id呢?即使服务重启也不会重复

![image](https://user-images.githubusercontent.com/18592659/132933950-eec08238-b164-4849-acaa-459be7a565fe.png) 在不停的接收到message时,频繁的通过 Gateway::getUidByClientId($client_id); 查询UID,然而在 lib/Gateway.php 中的 getUidByClientId 方法中,$data 变量返回的值,有可能是这样的: ``` array(1) { [2130706433]=> array(1) { [2000]=> bool(false) } } ``` 第三个 foreach 遍历 false 就出错了。 详细的打印记录,可见[error.txt](https://wwa.lanzoui.com/iTbMptv7h6f),false 在 日志中的 18267 行可见

```php if ($opcode === 0x9) { if ($recv_len >= $current_frame_length) { //**** } else { //为什么不添加此行呢? $connection->pingNotResponseCount = -1; $connection->send($ping_data); } $connection->websocketType = $tmp_connection_type; if ($recv_len > $current_frame_length) { return...

最近在一个大流量活动中使用了Workerman/GatewayWorker,发现在后台群推消息时,偶发会出现部分接收方无法接收消息的问题。 日志中表现为: ![image](https://user-images.githubusercontent.com/13899502/119324042-f45e8300-bcb1-11eb-9bf2-10570ea9c20f.png) 大概就是在 ``` } // 运行在其它环境中,通过注册中心得到gateway地址 else { $addresses = static::getAllGatewayAddressesFromRegister(); foreach ($addresses as $address) { $gateway_data['ext_data'] = isset($address_connection_array[$address]) ? json_encode(array('group'=> $group, 'exclude'=> $address_connection_array[$address])) : $default_ext_data_buffer; static::sendToGateway($address, $gateway_data);...