mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-15 00:30:24 +08:00
新增屏蔽错误
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user