-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/tls: TestServerHandshakeContextCancellation failures with "Unexpected server handshake error: EOF" #45299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, it is related to #45106. I can make the TestClientHandshakeContextCancellation test fail repeatably on plan9-arm too, by runniing it with '-count 100'. There too, I can prevent the race by inserting a delay between the |
Would you call this a duplicate of #45106, or not? Same root cause, isn't it? |
Yes, I would say it's the same flaw appearing in two different places. |
Change https://golang.org/cl/305250 mentions this issue: |
The crypto/tls test TestServerHandshakeContextCancellation is flaky on plan9-arm, with errors like
Empirically I've found that inserting a 50 millisecond delay between the
cli.writeRecord
call and the followingcancel
prevents the failure. This suggests there's a race with the server'sconn.HandshakeContext
call.I don't know whether this is related to #45106 but it seems possible.
The text was updated successfully, but these errors were encountered: