pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

超时的问题,过一夜第二天,就请求超时

Open wangluo1 opened this issue 6 years ago • 5 comments

[2018-05-02 10:06:12.894] [DEBUG] pomelo - [/data/ufoserver/PomeloGame/game-server/node_modules/pomelo/lib/components/connector.js] [connector-server-1] handleMessage session id: 5, msg: {"id":2,"type":0,"compressRoute":1,"route":"connector.entry2048Handler.entry","body":{"userid":1819},"compressGzip":0} [2018-05-02 10:06:12.896] [INFO] pomelo - msg[object Object] [2018-05-02 10:06:12.896] [DEBUG] pomelo - [/data/ufoserver/PomeloGame/game-server/node_modules/pomelo/lib/components/connector.js] session on [connector-server-1] bind with uid: 1819 [2018-05-02 10:06:15.899] [ERROR] pomelo - [/data/ufoserver/PomeloGame/game-server/node_modules/pomelo/lib/filters/handler/timeout.js] request "connector.entry2048Handler.entry" timeout

有人知道为什么吗?谢谢

wangluo1 avatar May 02 '18 02:05 wangluo1

超时大部分情况是 handler 没有执行 next 造成的

yangfch3 avatar May 03 '18 02:05 yangfch3

是没有执行next ,先调用rpc 之后回掉之后执行next 方法,如果没有执行next ,也就是说没有执行rpc 调用,或者调用失败,但是,为什么重启之后,有好了?

wangluo1 avatar May 03 '18 02:05 wangluo1

问题已经解决了,是进入了死循环了,导致next没有执行,谢谢

jie6121565 avatar May 03 '18 03:05 jie6121565

@jie6121565 你好怎么解决的,哪边会死循环

chenzeZzz avatar May 27 '18 05:05 chenzeZzz

@chenzeZzz 想要模拟死循环 在 某个 handler 接口里,在执行next之前 while(1) { } 包你体验到。

donhwa avatar May 31 '18 13:05 donhwa