net, syscall: make ECONNRESET/ECONNABORTED only temporary for Accept

Updates #6163
Fixes #24808

Change-Id: I4f5c686ebf60f72f71f566199ee3e946076202bb
Reviewed-on: https://go-review.googlesource.com/110439
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ian Lance Taylor 2018-04-30 20:23:37 -07:00
parent 1129ec2ffe
commit 7f6105f138
8 changed files with 83 additions and 2 deletions

View file

@ -110,7 +110,7 @@ func (e Errno) Error() string {
}
func (e Errno) Temporary() bool {
return e == EINTR || e == EMFILE || e == WSAECONNABORTED || e == WSAECONNRESET || e.Timeout()
return e == EINTR || e == EMFILE || e.Timeout()
}
func (e Errno) Timeout() bool {