Commit a5f3823c authored by Clément Chigot's avatar Clément Chigot Committed by Ian Lance Taylor

net: set TestNotTemporaryRead flaky for AIX

This test sometimes times out when the machine is busy.
The reason behind is still a bit blurry. But it seems to comes from
the fact that on AIX, once a listen is performed a socket, every
connection will be accepted even before an accept is made (which only
occurs when a machine is busy). On Linux, a socket is created as a
"passive socket" which seems to wait for the accept before allowing
incoming connections.

Updates #29685

Change-Id: I41b053b7d5f5b4420b72d6a217be72e41220d769
Reviewed-on: https://go-review.googlesource.com/c/go/+/185717
Run-TryBot: Clément Chigot <clement.chigot@atos.net>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 80cca23b
...@@ -525,6 +525,9 @@ func TestNotTemporaryRead(t *testing.T) { ...@@ -525,6 +525,9 @@ func TestNotTemporaryRead(t *testing.T) {
if runtime.GOOS == "freebsd" { if runtime.GOOS == "freebsd" {
testenv.SkipFlaky(t, 25289) testenv.SkipFlaky(t, 25289)
} }
if runtime.GOOS == "aix" {
testenv.SkipFlaky(t, 29685)
}
t.Parallel() t.Parallel()
server := func(cs *TCPConn) error { server := func(cs *TCPConn) error {
cs.SetLinger(0) cs.SetLinger(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment