2021-09-09 12:25:25 +00:00
|
|
|
//go:build !plan9
|
2017-09-15 16:09:20 +00:00
|
|
|
|
2018-01-12 16:30:54 +00:00
|
|
|
package fserrors
|
2017-09-15 16:09:20 +00: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,
|
|
|
|
)
|
|
|
|
}
|