Suppress expected error

This commit is contained in:
世界
2022-08-25 10:56:57 +08:00
parent 350729cde8
commit a940703ae1
3 changed files with 18 additions and 2 deletions

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
}