Skip to content

Commit

Permalink
gnet
Browse files Browse the repository at this point in the history
  • Loading branch information
snail007 committed May 16, 2024
1 parent a4ad16f commit 181c621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/net/heartbeat_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ retry:
time.Sleep(tempDelay)
continue retry
}
err=fmt.Errorf("heartbeat error: %s",err)
s.sendWriteErr(err)
s.sendReadErr(err)
return
Expand Down Expand Up @@ -173,6 +174,7 @@ retry:
time.Sleep(tempDelay)
continue retry
}
err=fmt.Errorf("heartbeat error: %s",err)
s.sendReadErr(err)
s.sendWriteErr(err)
return
Expand Down

0 comments on commit 181c621

Please sign in to comment.