Skip to content

QuicListener AcceptConnectionAsync and OperationCanceledException #78096

@pepone

Description

@pepone

The QuicListener can throw OperationCanceledException when the internal TLS handshake timeout expires, this is unexpected and not documented behavior.

See

_cancellationTokenSource.CancelAfter(s_handshakeTimeout);

It would be better to wrap the OperationCanceled exception from the internal timeout in a QuicException with the ConnectionTimeout error code

You should consider fixing this along #75184

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions