上传心跳优化
This commit is contained in:
parent
086f87468e
commit
ea11b690da
@ -79,6 +79,7 @@ locp:
|
|||||||
go this.Close()
|
go this.Close()
|
||||||
break locp
|
break locp
|
||||||
} else {
|
} else {
|
||||||
|
this.wsConn.SetReadDeadline(time.Now().Add(time.Second * 60))
|
||||||
// this.gateway.Debugf("----------1 agent:%s uId:%s MainType:%s SubType:%s ", this.sessionId, this.uId, msg.MainType, msg.SubType)
|
// this.gateway.Debugf("----------1 agent:%s uId:%s MainType:%s SubType:%s ", this.sessionId, this.uId, msg.MainType, msg.SubType)
|
||||||
if msg.MainType == string(comm.ModuleGate) { //心跳消息 无需校验秘钥
|
if msg.MainType == string(comm.ModuleGate) { //心跳消息 无需校验秘钥
|
||||||
data, _ := anypb.New(&pb.GatewayHeartbeatResp{
|
data, _ := anypb.New(&pb.GatewayHeartbeatResp{
|
||||||
@ -89,7 +90,6 @@ locp:
|
|||||||
SubType: "heartbeat",
|
SubType: "heartbeat",
|
||||||
Data: data,
|
Data: data,
|
||||||
})
|
})
|
||||||
this.wsConn.SetReadDeadline(time.Now().Add(time.Second * 30))
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var code pb.ErrorCode
|
var code pb.ErrorCode
|
||||||
|
Loading…
Reference in New Issue
Block a user