NetEase / pomelo

A fast,scalable,distributed game server framework for Node.js.
http://pomelo.netease.com
MIT License
11.86k stars 2.9k forks source link

KeepAlive timeout如何解决? #1166

Open kirinsky opened 4 years ago

kirinsky commented 4 years ago

开几个小时就出现:mqtt rpc client checkKeepAlive error timeout for 120000 看了源码,超时就关闭了

无缘无故为什么会超时呢?这个问题应怎么解决呢?

whtiehack commented 4 years ago

win10问题.暂时无解

sss316 commented 4 years ago

这种情况我也碰到过,大多数是代码执行超时, 建议文件读写,超大循环,数据库操作都使用异步操作,及时响应客户端请求,告诉客户端server忙碌,server加载中,server处理中等。

wangkunmeng commented 3 years ago

QQ pomelo交流群给了一个mqttClient.js的优化方案 image图未截完全