-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: remove session when send heart beat message failed #738
feat: remove session when send heart beat message failed #738
Conversation
feat:add more linter
feat:change golangclilint version to 1.57.x to support more linter
feat:adjust lint conf and adjust the code to pass the check
Quality Gate passedIssues Measures |
@@ -115,18 +115,22 @@ func (g *gettyClientHandler) OnMessage(session getty.Session, pkg interface{}) { | |||
|
|||
func (g *gettyClientHandler) OnCron(session getty.Session) { | |||
log.Debug("session{%s} Oncron executing", session.Stat()) | |||
g.transferBeatHeart(session, message.HeartBeatMessagePing) | |||
err := g.transferHeartBeat(session, message.HeartBeatMessagePing) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里要设置失败的心跳次数吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
跟进 issue:#740
@@ -115,18 +115,22 @@ func (g *gettyClientHandler) OnMessage(session getty.Session, pkg interface{}) { | |||
|
|||
func (g *gettyClientHandler) OnCron(session getty.Session) { | |||
log.Debug("session{%s} Oncron executing", session.Stat()) | |||
g.transferBeatHeart(session, message.HeartBeatMessagePing) | |||
err := g.transferHeartBeat(session, message.HeartBeatMessagePing) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
跟进 issue:#740
What this PR does:
close session when send heart beat message failed
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: