From 205d65146aa4d856e17b085fdecd007e31dedcc8 Mon Sep 17 00:00:00 2001 From: Sagleft Date: Sat, 22 Oct 2022 14:10:46 +0300 Subject: [PATCH] update `CheckErrorConnBroken` func --- errors.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/errors.go b/errors.go index d9a62b1..a003528 100644 --- a/errors.go +++ b/errors.go @@ -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") }