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
The QuicListener can throw
OperationCanceledExceptionwhen the internal TLS handshake timeout expires, this is unexpected and not documented behavior.See
runtime/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicListener.PendingConnection.cs
Line 58 in 1366574
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