Closed
Description
The crypto/tls test TestServerHandshakeContextCancellation is flaky on plan9-arm, with errors like
--- FAIL: TestServerHandshakeContextCancellation (0.01s)
handshake_server_test.go:1975: Unexpected server handshake error: EOF
handshake_server_test.go:1985: Server connection was not closed when the context was canceled
FAIL
FAIL crypto/tls 8.438s
Empirically I've found that inserting a 50 millisecond delay between the cli.writeRecord
call and the following cancel
prevents the failure. This suggests there's a race with the server's conn.HandshakeContext
call.
I don't know whether this is related to #45106 but it seems possible.