]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: retry net.Dial flakes on Dragonfly
authorBryan C. Mills <bcmills@google.com>
Mon, 21 Oct 2019 18:12:26 +0000 (14:12 -0400)
committerBryan C. Mills <bcmills@google.com>
Mon, 21 Oct 2019 19:06:29 +0000 (19:06 +0000)
commit71d127aafd15d7d11afb7752c22689a8c13ef21a
treea00676800611215c93f0c709342ee1f09a70fccb
parentba97d0d84d4272c4b8497fa6af2eab1580b62d44
crypto/tls: retry net.Dial flakes on Dragonfly

localPipe currently flakes in various crypto/tls tests. Since that
function doesn't seem to flake anywhere else, I suspect a kernel bug.

To make the test less flaky, retry the Dial if we suspect that it is
affected. (Worst case, we delay the test by a few seconds before
erroring out as usual.)

Fixes #29583

Change-Id: I357990ffa316edb471bd7d46d6404fa0884da646
Reviewed-on: https://go-review.googlesource.com/c/go/+/202557
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/tls/handshake_test.go
src/crypto/tls/handshake_unix_test.go [new file with mode: 0644]