client忽略keepalive消息

This commit is contained in:
lwch
2021-09-10 10:51:35 +08:00
parent 67be69fdd1
commit 6ddf7e8a76
+2
View File
@@ -114,6 +114,8 @@ func (conn *Conn) loopRead(cancel context.CancelFunc) {
linkID = msg.GetXDisconnect().GetId()
case network.Msg_forward:
linkID = msg.GetXData().GetLid()
case network.Msg_keepalive:
continue
}
conn.RLock()
ch := conn.read[linkID]