mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: retry ETIMEDOUT flakes in localPipe on dragonfly
Fixes #29583 Change-Id: Ia89433bddd4c9f67ec1f0150b730cde8a7e973ee Reviewed-on: https://go-review.googlesource.com/c/go/+/206759 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
07513d208a
commit
8c5dbba01c
1 changed files with 3 additions and 3 deletions
|
|
@ -275,9 +275,9 @@ Dialing:
|
|||
var c1 net.Conn
|
||||
c1, err = net.Dial(addr.Network(), addr.String())
|
||||
if err != nil {
|
||||
if runtime.GOOS == "dragonfly" && isConnRefused(err) {
|
||||
// golang.org/issue/29583: Dragonfly sometimes returned a spurious
|
||||
// ECONNREFUSED.
|
||||
if runtime.GOOS == "dragonfly" && (isConnRefused(err) || os.IsTimeout(err)) {
|
||||
// golang.org/issue/29583: Dragonfly sometimes returns a spurious
|
||||
// ECONNREFUSED or ETIMEDOUT.
|
||||
<-tooSlow.C
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue