2016-04-29 23:42:08 +08:00
|
|
|
// +build windows
|
|
|
|
|
2018-01-13 00:30:54 +08:00
|
|
|
package fserrors
|
2016-04-29 23:42:08 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2017-09-14 23:09:48 +08:00
|
|
|
const (
|
|
|
|
WSAECONNABORTED syscall.Errno = 10053
|
|
|
|
WSAHOST_NOT_FOUND syscall.Errno = 11001
|
|
|
|
WSATRY_AGAIN syscall.Errno = 11002
|
|
|
|
WSAENETRESET syscall.Errno = 10052
|
|
|
|
WSAETIMEDOUT syscall.Errno = 10060
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
// append some lower level errors since the standardized ones
|
|
|
|
// don't seem to happen
|
2017-09-16 00:09:20 +08:00
|
|
|
retriableErrors = append(retriableErrors,
|
2017-09-14 23:09:48 +08:00
|
|
|
syscall.WSAECONNRESET,
|
|
|
|
WSAECONNABORTED,
|
|
|
|
WSAHOST_NOT_FOUND,
|
|
|
|
WSATRY_AGAIN,
|
|
|
|
WSAENETRESET,
|
|
|
|
WSAETIMEDOUT,
|
|
|
|
syscall.ERROR_HANDLE_EOF,
|
|
|
|
syscall.ERROR_NETNAME_DELETED,
|
|
|
|
syscall.ERROR_BROKEN_PIPE,
|
|
|
|
)
|
2016-04-29 23:42:08 +08:00
|
|
|
}
|