Skip to content

crypto/tls: TestServerHandshakeContextCancellation failures with "Unexpected server handshake error: EOF" #45299

Closed
@millerresearch

Description

@millerresearch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions