]> Cypherpunks repositories - gostls13.git/commit
net: avoid darwin_arm64 bug in TestDialParallelSpuriousConnection
authorDamien Neil <dneil@google.com>
Wed, 8 Jun 2022 18:53:22 +0000 (11:53 -0700)
committerDamien Neil <dneil@google.com>
Mon, 13 Jun 2022 19:00:03 +0000 (19:00 +0000)
commit2c52465cb3d327590755cfb9ef1ef0f7a167c4eb
tree115290ce34fc5d6f4d983ac543cf45592896c6ed
parent9228d7d7d523e6831933b79f768dfbb51f8ffb5b
net: avoid darwin_arm64 bug in TestDialParallelSpuriousConnection

On darwin_arm64, reading from a socket at the same time as the other
end is closing it will occasionally hang for 60 seconds before
returning ECONNRESET. (This is a macOS issue, not a Go issue.)

Work around this condition by adding a brief sleep before the read.

Fixes #37795.

Change-Id: I63f92b91fb297cd66f89cdab707583afd50ab9c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/411155
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
src/net/dial_test.go