Fix UDP sniff fragment timeout treated as fatal error

This commit is contained in:
世界
2026-06-20 19:40:42 +08:00
parent 6397675574
commit 4e1af0600b

View File

@@ -700,7 +700,7 @@ func (r *Router) actionSniff(
}
if err != nil {
sniffBuffer.Release()
if !errors.Is(err, context.DeadlineExceeded) {
if !E.IsTimeout(err) {
fatalErr = err
return
}