summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-18 23:07:36 -0400
committerRuss Cox <rsc@golang.org>2014-09-18 23:07:36 -0400
commitbd000cad789741b0ad4c69e78be54739f21d53ca (patch)
tree0938b70e16d62d7018284451d67099fcc829ab66
parentbfc6b63651f3bd8b36e7a98d794df89de4a65bee (diff)
downloadgo-bd000cad789741b0ad4c69e78be54739f21d53ca.tar.gz
syscall: mark ECONNRESET, ECONNABORTED as temporary network errors
Fixes issue 6163. LGTM=adg R=golang-codereviews, adg, dvyukov CC=golang-codereviews https://codereview.appspot.com/141600043
-rw-r--r--src/syscall/syscall_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscall/syscall_unix.go b/src/syscall/syscall_unix.go
index f18dfca5e..a06bd7dd0 100644
--- a/src/syscall/syscall_unix.go
+++ b/src/syscall/syscall_unix.go
@@ -109,7 +109,7 @@ func (e Errno) Error() string {
}
func (e Errno) Temporary() bool {
- return e == EINTR || e == EMFILE || e.Timeout()
+ return e == EINTR || e == EMFILE || e == ECONNRESET || e == ECONNABORTED || e.Timeout()
}
func (e Errno) Timeout() bool {