mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
fix: converting 'server closed idle connection' to errDiskNotFound (#17330)
This commit is contained in:
parent
54e544e03e
commit
931712dc46
@ -46,10 +46,14 @@ func isNetworkError(err error) bool {
|
||||
if err == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
if nerr, ok := err.(*rest.NetworkError); ok {
|
||||
return xnet.IsNetworkOrHostDown(nerr.Err, false)
|
||||
if down := xnet.IsNetworkOrHostDown(nerr.Err, false); down {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
// More corner cases suitable for storage REST API
|
||||
switch {
|
||||
// A peer node can be in shut down phase and proactively
|
||||
// return 503 server closed error,consider it as an offline node
|
||||
|
Loading…
Reference in New Issue
Block a user