Skip to content

Commit

Permalink
keep alive出错时给个链接状态
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Aug 2, 2021
1 parent 60bf7ee commit ff56335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export class Cluster {
this.keepAliveError++
console.error('keep alive error')
console.error(e)
console.log(this.io)
if (this.keepAliveError >= 5) {
console.error('exit')
} else {
Expand Down

0 comments on commit ff56335

Please sign in to comment.