Suppress expected error

This commit is contained in:
世界
2022-08-25 11:02:27 +08:00
parent 350729cde8
commit a940703ae1
3 changed files with 18 additions and 2 deletions
+3
View File
@@ -102,5 +102,8 @@ func wrapError(err error) error {
if strings.Contains(err.Error(), "EOF") {
return io.EOF
}
if strings.Contains(err.Error(), "the client connection is closing") {
return net.ErrClosed
}
return err
}