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