聊天室程序注册相同房间导致另外一个断开连接
发布于 5 个月前 作者 ming81 344 次浏览 来自 问答

GOROOT=C:\Go #gosetup GOPATH=E:\workspace\mqantserver;D:\GoPath #gosetup C:\Go\bin\go.exe build -i -o C:\Users\Administrator\AppData\Local\Temp___2go_build_main_go.exe E:/workspace/mqantserver/src/server/main.go #gosetup "C:\Program Files\JetBrains\GoLand 2018.2.2\bin\runnerw.exe" C:\Users\Administrator\AppData\Local\Temp___2go_build_main_go.exe #gosetup Server configuration file path : E:\workspace\mqantserver/bin/conf/server.json 2018-12-10T19:29:59.2344749+08:00 [-] [-] [development] [I] [app.go:158] mqant 1.8.0 starting up 2018-12-10T19:29:59.2519876+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(Gate) id(Gate001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(Master) id(Master001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(HelloWorld) id(HelloWorld001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(Login) id(Login001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(PyChat) id(PyChat001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(Hitball) id(Hitball001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(Chat) id(Chat001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(Test) id(Test001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(XaXb) id(XaXb001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(Webapp) id(Webapp001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [app.go:262] RPCClient create success type(Tracing) id(Tracing001) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [ModuleManager.go:50] This service ProcessID is [development] 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [rpcserver.go:56] RPCServer init success id(Master001) version(1.0.0) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [rpcserver.go:56] RPCServer init success id(Hitball001) version(1.0.0) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [rpcserver.go:56] RPCServer init success id(Gate001) version(1.0.0) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [rpcserver.go:56] RPCServer init success id(HelloWorld001) version(1.0.0) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [rpcserver.go:56] RPCServer init success id(Login001) version(1.0.0) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [rpcserver.go:56] RPCServer init success id(Chat001) version(1.0.0) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [rpcserver.go:56] RPCServer init success id(Webapp001) version(1.0.0) 2018-12-10T19:29:59.2529886+08:00 [-] [-] [development] [I] [rpcserver.go:56] RPCServer init success id(XaXb001) version(1.0.0) 2018-12-10T19:29:59.2539896+08:00 [-] [-] [development] [I] [ws_server.go:117] WS Listen ::3653 2018-12-10T19:29:59.2539896+08:00 [-] [-] [development] [I] [module.go:60] webapp server Listen : :8080 2018-12-10T19:29:59.2539896+08:00 [-] [-] [development] [I] [tcp_server.go:39] TCP Listen ::3563 2018-12-10T19:30:36.8184964+08:00 [-] [-] [development] [I] [module.go:44] GET /mqant/chat/ HTTP/1.1 [127.0.0.1:2325] in 0s 2018-12-10T19:30:36.8355085+08:00 [-] [-] [development] [I] [module.go:44] GET /mqant/chat/style.css HTTP/1.1 [127.0.0.1:2325] in 999µs 2018-12-10T19:30:36.8365095+08:00 [-] [-] [development] [I] [module.go:44] GET /mqant/chat/js/lib/jquery-1.8.0.min.js HTTP/1.1 [127.0.0.1:2325] in 0s 2018-12-10T19:30:36.8375099+08:00 [-] [-] [development] [I] [module.go:44] GET /mqant/chat/js/lib/mqttws31.js HTTP/1.1 [127.0.0.1:2325] in 0s 2018-12-10T19:30:36.8395113+08:00 [-] [-] [development] [I] [module.go:44] GET /mqant/chat/js/lib/mqantlib.js HTTP/1.1 [127.0.0.1:2325] in 0s 2018-12-10T19:30:36.8405129+08:00 [-] [-] [development] [I] [module.go:44] GET /mqant/chat/js/client.js HTTP/1.1 [127.0.0.1:2326] in 0s 2018-12-10T19:30:46.7096009+08:00 [-] [-] [development] [I] [module.go:57] 客户端建立了链接 2018-12-10T19:30:46.7266611+08:00 [-] [-] [development] [I] [module.go:102] 查询Session持久化数据 2018-12-10T19:30:46.7266611+08:00 [-] [-] [development] [I] [module.go:85] 需要处理对Session的持久化 2018-12-10T19:30:46.7266611+08:00 [-] [-] [development] [I] [module.go:111] 用户在线的心跳包 2018-12-10T19:30:46.7286469+08:00 [063e47dfe2dd3527] [f974f51d12853eb9] [development] [I] [module.go:65] session map[login:true] 2018-12-10T19:30:46.7506661+08:00 [063e47dfe2dd3527] [f974f51d12853eb9] [development] [I] [module.go:74] Login track1 2018-12-10T19:30:46.7606732+08:00 [063e47dfe2dd3527] [f974f51d12853eb9] [development] [I] [module.go:82] Login track2 2018-12-10T19:30:46.7606732+08:00 [063e47dfe2dd3527] [f974f51d12853eb9] [development] [I] [module.go:74] 演示模块间RPC调用 :%!(EXTRA string=My is Login Module %!s(MISSING), string=) 2018-12-10T19:30:46.7606732+08:00 [-] [-] [development] [I] [RPCListener.go:72] 请求(HD_JoinChat) 执行时间为:[33011 微妙]! 2018-12-10T19:30:55.5418227+08:00 [-] [-] [development] [I] [module.go:44] GET /favicon.ico HTTP/1.1 [127.0.0.1:2326] in 0s 2018-12-10T19:31:06.5114944+08:00 [-] [-] [development] [I] [module.go:57] 客户端建立了链接 2018-12-10T19:31:06.5134956+08:00 [-] [-] [development] [I] [module.go:102] 查询Session持久化数据 2018-12-10T19:31:06.5134956+08:00 [-] [-] [development] [I] [module.go:85] 需要处理对Session的持久化 2018-12-10T19:31:06.5134956+08:00 [-] [-] [development] [I] [module.go:111] 用户在线的心跳包 2018-12-10T19:31:06.5147073+08:00 [5c7f52d9eda1aa1e] [c809133b236750f7] [development] [I] [module.go:65] session map[login:true] 2018-12-10T19:31:06.5357381+08:00 [5c7f52d9eda1aa1e] [c809133b236750f7] [development] [I] [module.go:74] Login track1 2018-12-10T19:31:06.5467336+08:00 [5c7f52d9eda1aa1e] [c809133b236750f7] [development] [I] [module.go:82] Login track2 2018-12-10T19:31:06.5567404+08:00 [5c7f52d9eda1aa1e] [c809133b236750f7] [development] [I] [module.go:93] Login track3 2018-12-10T19:31:06.5567404+08:00 [5c7f52d9eda1aa1e] [c809133b236750f7] [development] [I] [module.go:74] 演示模块间RPC调用 :%!(EXTRA string=My is Login Module %!s(MISSING), string=) 2018-12-10T19:31:06.5567404+08:00 [-] [-] [development] [I] [RPCListener.go:72] 请求(HD_JoinChat) 执行时间为:[42033 微妙]! 2018-12-10T19:31:06.5577374+08:00 [-] [-] [development] [I] [pack_queue.go:234] read_loop Groutine will esc. 2018-12-10T19:31:06.5577374+08:00 [-] [-] [development] [I] [pack_queue.go:130] write_loop Groutine will esc. 2018-12-10T19:31:06.5577374+08:00 [-] [-] [development] [I] [mqtt_client_server.go:90] Get a connection error 2018-12-10T19:31:06.5577374+08:00 [-] [-] [development] [I] [mqtt_client_server.go:116] listen_loop Groutine will esc. 2018-12-10T19:31:06.5577374+08:00 [-] [-] [development] [I] [module.go:62] 客户端断开了链接 2018-12-10T19:33:07.9819967+08:00 [-] [-] [development] [I] [module.go:111] 用户在线的心跳包

1 回复

麻烦作者确认下,是否可以正常通讯@liangdas

回到顶部