Commit 03d1aa60 authored by Tamir Duberstein's avatar Tamir Duberstein Committed by Alex Brainman

syscall: mark WSAECONNABORTED, WSAECONNRESET as temporary network errors

Windows was missed in https://golang.org/cl/141600043.

Fixes #6163 (again).

Change-Id: I09076be80fb6b2148d3e5618461ebaa79f27d5b3
Reviewed-on: https://go-review.googlesource.com/39490Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent e8475c94
......@@ -110,7 +110,7 @@ func (e Errno) Error() string {
}
func (e Errno) Temporary() bool {
return e == EINTR || e == EMFILE || e.Timeout()
return e == EINTR || e == EMFILE || e == WSAECONNABORTED || e == WSAECONNRESET || e.Timeout()
}
func (e Errno) Timeout() bool {
......
......@@ -27,6 +27,7 @@ const (
ERROR_NOT_FOUND Errno = 1168
ERROR_PRIVILEGE_NOT_HELD Errno = 1314
WSAEACCES Errno = 10013
WSAECONNABORTED Errno = 10053
WSAECONNRESET Errno = 10054
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment