67 references to QuicError
IIS.FunctionalTests (4)
Http3Tests.cs (4)
125
Assert.Equal(
QuicError
.StreamAborted, qex.QuicError);
141
Assert.Equal(
QuicError
.StreamAborted, qex.QuicError);
158
Assert.Equal(
QuicError
.StreamAborted, qex.QuicError);
172
Assert.Equal(
QuicError
.StreamAborted, qex.QuicError);
InMemory.FunctionalTests (1)
Http3\Http3ConnectionTests.cs (1)
768
System.Net.Quic.
QuicError
.ConnectionTimeout,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Http3Tests.cs (4)
178
Assert.Equal(
QuicError
.StreamAborted, qex.QuicError);
211
Assert.Equal(
QuicError
.StreamAborted, qex.QuicError);
237
Assert.Equal(
QuicError
.StreamAborted, qex.QuicError);
258
Assert.Equal(
QuicError
.StreamAborted, qex.QuicError);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (13)
Internal\QuicConnectionContext.cs (3)
131
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
147
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
162
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionTimeout)
Internal\QuicConnectionListener.cs (2)
128
catch (QuicException e) when (e.QuicError ==
QuicError
.AlpnInUse)
176
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
Internal\QuicStreamContext.cs (8)
273
catch (QuicException ex) when (ex.QuicError is
QuicError
.StreamAborted or
QuicError
.ConnectionAborted)
284
catch (QuicException ex) when (ex.QuicError is
QuicError
.ConnectionIdle)
292
catch (QuicException ex) when (ex.QuicError is
QuicError
.OperationAborted)
434
catch (QuicException ex) when (ex.QuicError is
QuicError
.StreamAborted or
QuicError
.ConnectionAborted)
445
catch (QuicException ex) when (ex.QuicError is
QuicError
.ConnectionIdle)
453
catch (QuicException ex) when (ex.QuicError is
QuicError
.OperationAborted)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (5)
QuicConnectionContextTests.cs (3)
140
Assert.Equal(
QuicError
.ConnectionAborted, innerEx.QuicError);
303
Assert.Equal(
QuicError
.ConnectionAborted, innerEx.QuicError);
488
Assert.Equal(
QuicError
.StreamAborted, clientEx.QuicError);
QuicStreamContextTests.cs (2)
469
Assert.Equal(
QuicError
.StreamAborted, ex.QuicError);
522
Assert.Equal(
QuicError
.StreamAborted, clientEx.QuicError);
System.Net.Http (18)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (10)
276
catch (QuicException e) when (e.QuicError !=
QuicError
.OperationAborted)
325
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
473
if (t.Exception?.InnerException is QuicException ex && ex.QuicError ==
QuicError
.StreamAborted)
481
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
538
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
542
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
580
catch (QuicException ex) when (ex.QuicError ==
QuicError
.StreamAborted)
673
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted)
677
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
774
catch (QuicException ex) when (ex.QuicError ==
QuicError
.StreamAborted)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (8)
271
catch (QuicException ex) when (ex.QuicError ==
QuicError
.StreamAborted)
294
catch (QuicException ex) when (ex.QuicError ==
QuicError
.ConnectionAborted)
303
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted && cancellationToken.IsCancellationRequested)
309
catch (QuicException ex) when (ex.QuicError ==
QuicError
.OperationAborted && _connection.AbortException != null)
1291
case QuicException e when (e.QuicError ==
QuicError
.StreamAborted):
1296
case QuicException e when (e.QuicError ==
QuicError
.ConnectionAborted):
1303
case QuicException e when (e.QuicError ==
QuicError
.OperationAborted && _connection.AbortException != null):
1310
case QuicException e when (e.QuicError ==
QuicError
.OperationAborted && cancellationToken.IsCancellationRequested):
System.Net.Quic (22)
System\Net\Quic\Internal\ThrowHelper.cs (10)
20
return new QuicException(
QuicError
.ConnectionAborted, errorCode, SR.Format(SR.net_quic_connectionaborted, errorCode));
25
return new QuicException(
QuicError
.StreamAborted, errorCode, SR.Format(SR.net_quic_streamaborted, errorCode));
30
return new QuicException(
QuicError
.OperationAborted, null, message ?? SR.net_quic_operationaborted);
73
if (status == QUIC_STATUS_CONNECTION_REFUSED) return new QuicException(
QuicError
.ConnectionRefused, null, errorCode, SR.net_quic_connection_refused);
74
if (status == QUIC_STATUS_CONNECTION_TIMEOUT) return new QuicException(
QuicError
.ConnectionTimeout, null, errorCode, SR.net_quic_timeout);
75
if (status == QUIC_STATUS_VER_NEG_ERROR) return new QuicException(
QuicError
.VersionNegotiationError, null, errorCode, SR.net_quic_ver_neg_error);
76
if (status == QUIC_STATUS_CONNECTION_IDLE) return new QuicException(
QuicError
.ConnectionIdle, null, errorCode, SR.net_quic_connection_idle);
77
if (status == QUIC_STATUS_PROTOCOL_ERROR) return new QuicException(
QuicError
.TransportError, null, errorCode, SR.net_quic_protocol_error);
78
if (status == QUIC_STATUS_ALPN_IN_USE) return new QuicException(
QuicError
.AlpnInUse, null, errorCode, SR.net_quic_alpn_in_use);
129
return new QuicException(
QuicError
.InternalError, null, SR.Format(SR.net_quic_internal_error, GetErrorMessageForStatus(status, message)));
System\Net\Quic\QuicConnection.cs (2)
95
throw new QuicException(
QuicError
.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, options.HandshakeTimeout));
550
if (ex is QuicException qex && qex.QuicError ==
QuicError
.InternalError &&
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
255
throw new QuicException(
QuicError
.CallbackError, null, SR.net_quic_callback_error, ex);
System\Net\Quic\QuicException.cs (7)
19
public QuicException(
QuicError
error, long? applicationErrorCode, string message)
30
internal QuicException(
QuicError
error, long? applicationErrorCode, long? transportErrorCode, string message)
41
internal QuicException(
QuicError
error, long? applicationErrorCode, string message, Exception? innerException)
53
internal QuicException(
QuicError
error, long? applicationErrorCode, long? transportErrorCode, string message, Exception? innerException)
64
public
QuicError
QuicError { get; }
70
/// This property contains the error code set by the application layer when closing the connection (<see cref="
QuicError
.ConnectionAborted"/>) or closing a read/write direction of a QUIC stream (<see cref="
QuicError
.StreamAborted"/>). Contains null for all other errors.
System\Net\Quic\QuicListener.cs (2)
276
Exception ex = ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(
QuicError
.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, handshakeTimeout), oce));
315
ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(
QuicError
.CallbackError, null, SR.net_quic_callback_error, ex)) :