xiaonanln / goworld

Scalable Distributed Game Server Engine with Hot Swapping in Golang
Apache License 2.0
2.53k stars 450 forks source link

为什么我在服务端游戏逻辑中开启多个GoRoutine时,dispatcher就断开连接了? #94

Open lyt1 opened 4 years ago

lyt1 commented 4 years ago

warn dispatcherClientProxy<game1|127.0.0.1:52657> disconnected {"source": "dispatcherService", "ts": "2020-06-08T10:23:51.852+0800"} error DispatcherService<1>: game 1 is down: dispatcherClientProxy<game1|127.0.0.1:52657> {"source": "dispatcherService", "ts": "2020-06-08T10:23:51.852+0800"} info DispatcherService<1>: game1 is down, cleaning up... {"source": "dispatcherService", "ts": "2020-06-08T10:23:51.852+0800"} info DispatcherService<1>: game1 is down, 7 entities cleaned {"source": "dispatcherService", "ts": "2020-06-08T10:23:51.852+0800"} warn game 1 pending packet count = 1, blocked = false, clientProxy = {"source": "dispatcherService", "ts": "2020-06-08T10:23:51.852+0800"} 类似这样的错

LiuBaiSMD commented 2 years ago

image 作者貌似说这个是单线程的吧