mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
1129ec2ffe
commit
7f6105f138
8 changed files with 83 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue