Skip to content

Commit

Permalink
update CheckErrorConnBroken func
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagleft committed Oct 22, 2022
1 parent b9f63cc commit 205d651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ func CheckErrorConnBroken(err error) bool {
}

return strings.Contains(err.Error(), "read: connection reset by peer") ||
strings.Contains(err.Error(), "context deadline exceeded")
strings.Contains(err.Error(), "context deadline exceeded") ||
strings.Contains(err.Error(), "client disconected")
}

0 comments on commit 205d651

Please sign in to comment.