pomelo
pomelo copied to clipboard
超时的问题,过一夜第二天,就请求超时
[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
有人知道为什么吗?谢谢
超时大部分情况是 handler 没有执行 next 造成的
是没有执行next ,先调用rpc 之后回掉之后执行next 方法,如果没有执行next ,也就是说没有执行rpc 调用,或者调用失败,但是,为什么重启之后,有好了?
问题已经解决了,是进入了死循环了,导致next没有执行,谢谢
@jie6121565 你好怎么解决的,哪边会死循环
@chenzeZzz 想要模拟死循环 在 某个 handler 接口里,在执行next之前 while(1) { } 包你体验到。