rclone/fs/fserrors/retriable_errors.go

23 lines
333 B
Go
Raw Normal View History

2021-09-09 20:25:25 +08:00
//go:build !plan9
2017-09-16 00:09:20 +08:00
// +build !plan9
package fserrors
2017-09-16 00:09:20 +08:00
import (
"syscall"
)
func init() {
retriableErrors = append(retriableErrors,
syscall.EPIPE,
syscall.ETIMEDOUT,
syscall.ECONNREFUSED,
syscall.EHOSTDOWN,
syscall.EHOSTUNREACH,
syscall.ECONNABORTED,
syscall.EAGAIN,
syscall.EWOULDBLOCK,
syscall.ECONNRESET,
)
}