新增屏蔽错误

This commit is contained in:
刘祥超
2022-08-04 10:04:26 +08:00
parent 17e0666ba4
commit 15fe7b33a4

View File

@@ -1712,7 +1712,12 @@ func (this *HTTPRequest) canIgnore(err error) bool {
} }
// 客户端主动取消 // 客户端主动取消
if err == errWritingToClient || err == context.Canceled || err == io.ErrShortWrite || strings.Contains(err.Error(), "write: connection") || strings.Contains(err.Error(), "write: broken pipe") { if err == errWritingToClient ||
err == context.Canceled ||
err == io.ErrShortWrite ||
strings.Contains(err.Error(), "write: connection") ||
strings.Contains(err.Error(), "write: broken pipe") ||
strings.Contains(err.Error(), "write tcp") {
return true return true
} }