218 references to Http3ErrorCode
InMemory.FunctionalTests (80)
Http3\Http3ConnectionTests.cs (13)
190
await Http3Api.WaitForConnectionStopAsync(expectedStreamId, false, expectedErrorCode:
Http3ErrorCode
.NoError);
211
await rejectedRequest.WaitForStreamErrorAsync(
Http3ErrorCode
.RequestRejected);
220
await Http3Api.WaitForConnectionStopAsync(4, false, expectedErrorCode:
Http3ErrorCode
.NoError);
245
expectedErrorCode:
Http3ErrorCode
.SettingsError,
265
expectedErrorCode:
Http3ErrorCode
.StreamCreationError,
287
expectedErrorCode:
Http3ErrorCode
.UnexpectedFrame,
312
expectedErrorCode:
Http3ErrorCode
.ClosedCriticalStream,
338
await Http3Api.WaitForConnectionStopAsync(0, true, expectedErrorCode:
Http3ErrorCode
.NoError);
357
expectedErrorCode:
Http3ErrorCode
.ClosedCriticalStream,
386
expectedErrorCode:
Http3ErrorCode
.FrameError,
792
expectedErrorCode:
Http3ErrorCode
.ClosedCriticalStream,
818
expectedErrorCode:
Http3ErrorCode
.ClosedCriticalStream,
978
await Http3Api.WaitForConnectionStopAsync(4, false, expectedErrorCode:
Http3ErrorCode
.NoError);
Http3\Http3StreamTests.cs (40)
81
Http3ErrorCode
.ProtocolError,
99
Http3ErrorCode
.ProtocolError,
141
Http3ErrorCode
.InternalError,
270
Http3ErrorCode
.ProtocolError,
287
Http3ErrorCode
.ProtocolError,
331
Http3ErrorCode
.ProtocolError,
481
Http3ErrorCode
.ProtocolError,
501
Http3ErrorCode
.ProtocolError,
521
Http3ErrorCode
.ProtocolError,
542
Http3ErrorCode
.RequestRejected,
701
Http3ErrorCode
.ProtocolError,
938
Http3ErrorCode
.InternalError,
1093
Http3ErrorCode
.InternalError,
1113
resetFeature.Reset((int)
Http3ErrorCode
.RequestCancelled);
1119
Http3ErrorCode
.RequestCancelled,
1121
CoreStrings.FormatHttp3StreamResetByApplication(Http3Formatting.ToFormattedErrorCode(
Http3ErrorCode
.RequestCancelled)));
1632
await requestStream.WaitForStreamErrorAsync(
Http3ErrorCode
.InternalError,
1690
await requestStream.WaitForStreamErrorAsync(
Http3ErrorCode
.InternalError,
1749
await requestStream.WaitForStreamErrorAsync(
Http3ErrorCode
.InternalError, expectedErrorMessage: null);
1813
await requestStream.WaitForStreamErrorAsync(
Http3ErrorCode
.InternalError, expectedErrorMessage: null);
1851
resetFeature.Reset((int)
Http3ErrorCode
.NoError);
1875
Http3ErrorCode
.NoError,
1916
resetFeature.Reset((int)
Http3ErrorCode
.NoError);
1943
Http3ErrorCode
.NoError,
1964
Http3ErrorCode
.UnexpectedFrame,
2028
Http3ErrorCode
.UnexpectedFrame,
2036
Http3ErrorCode
.UnexpectedFrame,
2105
Http3ErrorCode
.UnexpectedFrame,
2111
expectedErrorCode:
Http3ErrorCode
.UnexpectedFrame,
2136
Http3ErrorCode
.UnexpectedFrame,
2142
Http3ErrorCode
.UnexpectedFrame,
2155
Http3ErrorCode
.RequestIncomplete,
2294
private async Task HEADERS_Received_InvalidHeaderFields_StreamError(IEnumerable<KeyValuePair<string, string>> headers, string expectedErrorMessage,
Http3ErrorCode
? errorCode = null)
2299
errorCode ??
Http3ErrorCode
.MessageError,
2310
Http3ErrorCode
.MessageError,
2372
return HEADERS_Received_InvalidHeaderFields_StreamError(headers, CoreStrings.BadRequest_HeadersExceedMaxTotalSize,
Http3ErrorCode
.RequestRejected);
2387
Http3ErrorCode
.InternalError);
2756
return HEADERS_Received_InvalidHeaderFields_StreamError(headers, CoreStrings.BadRequest_RequestLineTooLong,
Http3ErrorCode
.RequestRejected);
2776
Http3ErrorCode
.StreamCreationError,
2822
Http3ErrorCode
.InternalError,
Http3\Http3TimeoutTests.cs (12)
30
await Http3Api.WaitForConnectionStopAsync(0, false, expectedErrorCode:
Http3ErrorCode
.NoError);
47
await Http3Api.WaitForConnectionStopAsync(0, false, expectedErrorCode:
Http3ErrorCode
.NoError);
76
await Http3Api.WaitForConnectionStopAsync(4, false, expectedErrorCode:
Http3ErrorCode
.NoError);
122
await Http3Api.WaitForConnectionStopAsync(4, false, expectedErrorCode:
Http3ErrorCode
.NoError);
152
Http3ErrorCode
.RequestRejected,
275
Http3ErrorCode
.StreamCreationError,
370
Http3ErrorCode
.InternalError,
413
Http3ErrorCode
.InternalError,
568
Http3ErrorCode
.InternalError,
623
Http3ErrorCode
.InternalError,
679
Http3ErrorCode
.InternalError,
778
Http3ErrorCode
.RequestRejected,
Http3\WebTransport\WebTransportHandshakeTests.cs (4)
93
((long)
Http3ErrorCode
.ProtocolError),
102
((long)
Http3ErrorCode
.ProtocolError),
110
((long)
Http3ErrorCode
.ProtocolError),
152
await requestStream.WaitForStreamErrorAsync((
Http3ErrorCode
)error, AssertExpectedErrorMessages, GetCoreStringFromName(targetErrorMessage));
Http3\WebTransport\WebTransportSessionTests.cs (2)
79
session.Abort(new(), System.Net.Http.
Http3ErrorCode
.InternalError);
88
Http3Api.Connection._streams[session.SessionId].Abort(new(), System.Net.Http.
Http3ErrorCode
.InternalError);
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (9)
138
internal Task WaitForConnectionStopAsync(long expectedLastStreamId, bool ignoreNonGoAwayFrames,
Http3ErrorCode
? expectedErrorCode = null)
143
internal async Task WaitForConnectionErrorAsync<TException>(bool ignoreNonGoAwayFrames, long? expectedLastStreamId,
Http3ErrorCode
expectedErrorCode, Action<Type, string[]> matchExpectedErrorMessage = null, params string[] expectedErrorMessage)
176
private void AssertConnectionError<TException>(
Http3ErrorCode
expectedErrorCode, Action<Type, string[]> matchExpectedErrorMessage = null, params string[] expectedErrorMessage) where TException : Exception
178
var
currentError = (
Http3ErrorCode
)MultiplexedConnectionContext.Error;
648
internal async Task WaitForStreamErrorAsync(
Http3ErrorCode
protocolError, Action<string> matchExpectedErrorMessage = null, string expectedErrorMessage = null)
665
if (protocolError !=
Http3ErrorCode
.NoError && (
Http3ErrorCode
)Error != protocolError)
667
throw new InvalidOperationException($"Expected error code {protocolError}, got {(
Http3ErrorCode
)Error}.");
Microsoft.AspNetCore.Server.Kestrel (2)
WebHostBuilderKestrelExtensions.cs (2)
61
options.DefaultStreamErrorCode = (long)
Http3ErrorCode
.RequestCancelled;
62
options.DefaultCloseErrorCode = (long)
Http3ErrorCode
.NoError;
Microsoft.AspNetCore.Server.Kestrel.Core (102)
Internal\Http3\Http3Connection.cs (16)
105
private
Http3ErrorCode
Http3ErrorCodeOrNoError => _errorCodeFeature.Error == -1 ?
Http3ErrorCode
.NoError : (
Http3ErrorCode
)_errorCodeFeature.Error;
159
Abort(ex,
Http3ErrorCode
.InternalError, reason);
162
public void Abort(ConnectionAbortedException ex,
Http3ErrorCode
errorCode, ConnectionEndReason reason)
244
connection.OnStreamConnectionError(new Http3ConnectionErrorException(CoreStrings.Http3ErrorControlStreamClosed,
Http3ErrorCode
.ClosedCriticalStream, ConnectionEndReason.ClosedCriticalStream));
297
stream.Abort(new ConnectionAbortedException(CoreStrings.BadRequest_RequestHeadersTimeout),
Http3ErrorCode
.RequestRejected);
301
stream.Abort(new ConnectionAbortedException(CoreStrings.Http3ControlStreamHeaderTimeout),
Http3ErrorCode
.StreamCreationError);
322
OnStreamConnectionError(new Http3ConnectionErrorException(CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied,
Http3ErrorCode
.InternalError, ConnectionEndReason.MinResponseDataRate));
456
Log.Http3StreamAbort(CoreStrings.FormatUnidentifiedStream(ex.StreamId),
Http3ErrorCode
.StreamCreationError, new(ex.Message));
517
var
errorCode = Http3ErrorCodeOrNoError;
580
Abort(CreateConnectionAbortError(error, clientAbort),
Http3ErrorCode
.InternalError, ConnectionEndReason.OtherError);
602
streamContext.Features.GetRequiredFeature<IProtocolErrorCodeFeature>().Error = (long)
Http3ErrorCode
.RequestRejected;
650
throw new Http3StreamErrorException(CoreStrings.ReceivedLooseWebTransportStream,
Http3ErrorCode
.StreamCreationError);
715
_errorCodeFeature.Error = (long)
Http3ErrorCode
.NoError;
742
var connectionError = new Http3ConnectionErrorException(CoreStrings.Http3ControlStreamErrorInitializingOutbound,
Http3ErrorCode
.ClosedCriticalStream, ConnectionEndReason.ClosedCriticalStream);
Internal\Http3\Http3ConnectionErrorException.cs (2)
10
public Http3ConnectionErrorException(string message,
Http3ErrorCode
errorCode, ConnectionEndReason reason)
17
public
Http3ErrorCode
ErrorCode { get; }
Internal\Http3\Http3ControlStream.cs (11)
91
public void Abort(ConnectionAbortedException abortReason,
Http3ErrorCode
errorCode)
212
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("control"),
Http3ErrorCode
.StreamCreationError, ConnectionEndReason.StreamCreationError);
221
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("encoder"),
Http3ErrorCode
.StreamCreationError, ConnectionEndReason.StreamCreationError);
230
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamErrorMultipleInboundStreams("decoder"),
Http3ErrorCode
.StreamCreationError, ConnectionEndReason.StreamCreationError);
236
throw new Http3StreamErrorException(CoreStrings.FormatHttp3ControlStreamErrorUnsupportedType(_headerType),
Http3ErrorCode
.StreamCreationError);
335
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ErrorUnsupportedFrameOnControlStream(incomingFrame.FormattedType),
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
355
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamFrameTooLarge(http3RawFrame.FormattedType),
Http3ErrorCode
.FrameError, ConnectionEndReason.InvalidFrameLength);
367
throw new Http3ConnectionErrorException(CoreStrings.Http3ErrorControlStreamMultipleSettingsFrames,
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
407
throw new Http3ConnectionErrorException(message,
Http3ErrorCode
.SettingsError, ConnectionEndReason.InvalidSettings);
490
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3ControlStreamFrameTooLarge(Http3Formatting.ToFormattedType(incomingFrame.Type)),
Http3ErrorCode
.FrameError, ConnectionEndReason.InvalidFrameLength);
499
throw new Http3ConnectionErrorException(message,
Http3ErrorCode
.MissingSettings, ConnectionEndReason.InvalidSettings);
Internal\Http3\Http3Formatting.cs (17)
25
public static string ToFormattedErrorCode(
Http3ErrorCode
errorCode)
29
Http3ErrorCode
.NoError => "H3_NO_ERROR",
30
Http3ErrorCode
.ProtocolError => "H3_GENERAL_PROTOCOL_ERROR",
31
Http3ErrorCode
.InternalError => "H3_INTERNAL_ERROR",
32
Http3ErrorCode
.StreamCreationError => "H3_STREAM_CREATION_ERROR",
33
Http3ErrorCode
.ClosedCriticalStream => "H3_CLOSED_CRITICAL_STREAM",
34
Http3ErrorCode
.UnexpectedFrame => "H3_FRAME_UNEXPECTED",
35
Http3ErrorCode
.FrameError => "H3_FRAME_ERROR",
36
Http3ErrorCode
.ExcessiveLoad => "H3_EXCESSIVE_LOAD",
37
Http3ErrorCode
.IdError => "H3_ID_ERROR",
38
Http3ErrorCode
.SettingsError => "H3_SETTINGS_ERROR",
39
Http3ErrorCode
.MissingSettings => "H3_MISSING_SETTINGS",
40
Http3ErrorCode
.RequestRejected => "H3_REQUEST_REJECTED",
41
Http3ErrorCode
.RequestCancelled => "H3_REQUEST_CANCELLED",
42
Http3ErrorCode
.RequestIncomplete => "H3_REQUEST_INCOMPLETE",
43
Http3ErrorCode
.ConnectError => "H3_CONNECT_ERROR",
44
Http3ErrorCode
.VersionFallback => "H3_VERSION_FALLBACK",
Internal\Http3\Http3FrameWriter.cs (2)
322
_http3Stream.Abort(new ConnectionAbortedException(ex.Message, ex),
Http3ErrorCode
.InternalError);
377
_http3Stream.Abort(new ConnectionAbortedException(ex.Message, ex),
Http3ErrorCode
.InternalError);
Internal\Http3\Http3OutputProducer.cs (2)
110
_stream.Abort(abortReason,
Http3ErrorCode
.InternalError);
115
_stream.Abort(new ConnectionAbortedException($"{nameof(Http3OutputProducer)}.{nameof(ProcessDataWrites)} has completed."),
Http3ErrorCode
.InternalError);
Internal\Http3\Http3Stream.cs (43)
163
public void Abort(ConnectionAbortedException abortReason,
Http3ErrorCode
errorCode)
168
private void AbortCore(Exception exception,
Http3ErrorCode
errorCode)
215
Abort(abortReason,
Http3ErrorCode
.InternalError);
310
throw new Http3StreamErrorException(CoreStrings.BadRequest_HeadersExceedMaxTotalSize,
Http3ErrorCode
.RequestRejected);
371
throw new Http3StreamErrorException(bre.Message,
Http3ErrorCode
.MessageError);
375
throw new Http3StreamErrorException(CoreStrings.BadRequest_MalformedRequestInvalidHeaders,
Http3ErrorCode
.MessageError);
383
throw new Http3StreamErrorException(CoreStrings.HttpErrorConnectionSpecificHeaderField,
Http3ErrorCode
.MessageError);
394
throw new Http3StreamErrorException(CoreStrings.HttpErrorTrailerNameUppercase,
Http3ErrorCode
.MessageError);
398
throw new Http3StreamErrorException(CoreStrings.HttpErrorHeaderNameUppercase,
Http3ErrorCode
.MessageError);
428
throw new Http3StreamErrorException(CoreStrings.HttpErrorPseudoHeaderFieldAfterRegularHeaders,
Http3ErrorCode
.MessageError);
435
throw new Http3StreamErrorException(CoreStrings.HttpErrorTrailersContainPseudoHeaderField,
Http3ErrorCode
.MessageError);
445
throw new Http3StreamErrorException(CoreStrings.HttpErrorUnknownPseudoHeaderField,
Http3ErrorCode
.MessageError);
453
throw new Http3StreamErrorException(CoreStrings.HttpErrorResponsePseudoHeaderField,
Http3ErrorCode
.MessageError);
460
throw new Http3StreamErrorException(CoreStrings.HttpErrorDuplicatePseudoHeaderField,
Http3ErrorCode
.MessageError);
582
_streamAbortFeature.AbortRead((long)
Http3ErrorCode
.NoError, new ConnectionAbortedException("The application completed without reading the entire request body."));
632
stream.AbortCore(new IOException(CoreStrings.HttpStreamResetByClient), (
Http3ErrorCode
)errorCode);
700
AbortCore(new IOException(CoreStrings.HttpStreamResetByClient, ex), (
Http3ErrorCode
)resolvedErrorCode);
729
Abort(streamError,
Http3ErrorCode
.ProtocolError);
769
throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorRequestEndedNoHeaders,
Http3ErrorCode
.RequestIncomplete);
777
throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorLessDataThanLength,
Http3ErrorCode
.ProtocolError);
800
CoreStrings.FormatHttp3ErrorUnsupportedFrameOnRequestStream(incomingFrame.FormattedType),
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame),
803
CoreStrings.FormatHttp3ErrorUnsupportedFrameOnServer(incomingFrame.FormattedType),
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame),
823
throw new Http3ConnectionErrorException(CoreStrings.FormatHttp3StreamErrorFrameReceivedAfterTrailers(Http3Formatting.ToFormattedType(Http3FrameType.Headers)),
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
850
throw new Http3StreamErrorException(ex.Message,
Http3ErrorCode
.InternalError);
884
throw new Http3StreamErrorException(CoreStrings.Http3MethodMustBeConnectWhenUsingProtocolPseudoHeader,
Http3ErrorCode
.ProtocolError);
889
throw new Http3StreamErrorException(CoreStrings.Http3MissingAuthorityOrPathPseudoHeaders,
Http3ErrorCode
.ProtocolError);
894
throw new Http3StreamErrorException(CoreStrings.FormatHttp3WebTransportStatusMismatch(_context.ClientPeerSettings.EnableWebTransport == 1, _context.ServerPeerSettings.EnableWebTransport == 1),
Http3ErrorCode
.SettingsError);
899
throw new Http3StreamErrorException(CoreStrings.FormatHttp3DatagramStatusMismatch(_context.ClientPeerSettings.H3Datagram == 1, _context.ServerPeerSettings.H3Datagram == 1),
Http3ErrorCode
.SettingsError);
917
throw new Http3StreamErrorException(CoreStrings.HttpErrorMissingMandatoryPseudoHeaderFields,
Http3ErrorCode
.MessageError);
933
throw new Http3ConnectionErrorException(CoreStrings.Http3StreamErrorDataReceivedBeforeHeaders,
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
941
throw new Http3ConnectionErrorException(message,
Http3ErrorCode
.UnexpectedFrame, ConnectionEndReason.UnexpectedFrame);
949
throw new Http3StreamErrorException(CoreStrings.Http3StreamErrorMoreDataThanLength,
Http3ErrorCode
.ProtocolError);
986
protected override void ApplicationAbort() => ApplicationAbort(new ConnectionAbortedException(CoreStrings.ConnectionAbortedByApplication),
Http3ErrorCode
.InternalError);
988
private void ApplicationAbort(ConnectionAbortedException abortReason,
Http3ErrorCode
error)
1062
Abort(new ConnectionAbortedException(CoreStrings.Http3ErrorConnectMustNotSendSchemeOrPath),
Http3ErrorCode
.ProtocolError);
1082
Abort(new ConnectionAbortedException(str),
Http3ErrorCode
.ProtocolError);
1113
Abort(new ConnectionAbortedException(CoreStrings.BadRequest_RequestLineTooLong),
Http3ErrorCode
.RequestRejected);
1133
Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3ErrorMethodInvalid(_methodText)),
Http3ErrorCode
.ProtocolError);
1141
Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3ErrorMethodInvalid(_methodText)),
Http3ErrorCode
.ProtocolError);
1181
Abort(new ConnectionAbortedException(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail(hostText)),
Http3ErrorCode
.ProtocolError);
1194
Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)),
Http3ErrorCode
.ProtocolError);
1233
Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)),
Http3ErrorCode
.ProtocolError);
1303
Abort(new(),
Http3ErrorCode
.RequestCancelled);
Internal\Http3\Http3Stream.FeatureCollection.cs (2)
57
var message = CoreStrings.FormatHttp3StreamResetByApplication(Http3Formatting.ToFormattedErrorCode((
Http3ErrorCode
)errorCode));
59
ApplicationAbort(abortReason, (
Http3ErrorCode
)errorCode);
Internal\Http3\Http3StreamErrorException.cs (2)
10
public Http3StreamErrorException(string message,
Http3ErrorCode
errorCode)
16
public
Http3ErrorCode
ErrorCode { get; }
Internal\Http3\IHttp3Stream.cs (1)
50
void Abort(ConnectionAbortedException abortReason,
Http3ErrorCode
errorCode);
Internal\Infrastructure\KestrelTrace.Http3.cs (1)
28
public void Http3StreamAbort(string traceIdentifier,
Http3ErrorCode
error, ConnectionAbortedException abortReason)
Internal\WebTransport\WebTransportSession.cs (2)
64
Abort(new(), (
Http3ErrorCode
)errorCode);
91
internal void Abort(ConnectionAbortedException exception,
Http3ErrorCode
error)
Internal\WebTransport\WebTransportStream.cs (1)
86
_log.Http3StreamAbort(ConnectionId,
Http3ErrorCode
.InternalError, abortReason);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (9)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (9)
138
internal Task WaitForConnectionStopAsync(long expectedLastStreamId, bool ignoreNonGoAwayFrames,
Http3ErrorCode
? expectedErrorCode = null)
143
internal async Task WaitForConnectionErrorAsync<TException>(bool ignoreNonGoAwayFrames, long? expectedLastStreamId,
Http3ErrorCode
expectedErrorCode, Action<Type, string[]> matchExpectedErrorMessage = null, params string[] expectedErrorMessage)
176
private void AssertConnectionError<TException>(
Http3ErrorCode
expectedErrorCode, Action<Type, string[]> matchExpectedErrorMessage = null, params string[] expectedErrorMessage) where TException : Exception
178
var
currentError = (
Http3ErrorCode
)MultiplexedConnectionContext.Error;
648
internal async Task WaitForStreamErrorAsync(
Http3ErrorCode
protocolError, Action<string> matchExpectedErrorMessage = null, string expectedErrorMessage = null)
665
if (protocolError !=
Http3ErrorCode
.NoError && (
Http3ErrorCode
)Error != protocolError)
667
throw new InvalidOperationException($"Expected error code {protocolError}, got {(
Http3ErrorCode
)Error}.");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (25)
QuicConnectionContextTests.cs (13)
30
defaultCloseErrorCode: (long)
Http3ErrorCode
.RequestCancelled);
54
defaultCloseErrorCode: (long)
Http3ErrorCode
.RequestCancelled);
70
exceptionMessage: $"Connection aborted by peer ({(long)
Http3ErrorCode
.RequestCancelled}).");
72
Assert.Equal((long)
Http3ErrorCode
.RequestCancelled, ex.ApplicationErrorCode);
298
await quicConnection.CloseAsync((long)
Http3ErrorCode
.NoError).DefaultTimeout();
304
Assert.Equal((long)
Http3ErrorCode
.NoError, innerEx.ApplicationErrorCode.Value);
306
Assert.Equal((long)
Http3ErrorCode
.NoError, serverConnection.Features.Get<IProtocolErrorCodeFeature>().Error);
423
clientStream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.InternalError);
428
Assert.Equal((long)
Http3ErrorCode
.InternalError, ((QuicException)ex.InnerException).ApplicationErrorCode.Value);
472
clientStream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.InternalError);
477
Assert.Equal((long)
Http3ErrorCode
.InternalError, ((QuicException)serverEx.InnerException).ApplicationErrorCode.Value);
479
serverStream.Features.Get<IProtocolErrorCodeFeature>().Error = (long)
Http3ErrorCode
.RequestRejected;
489
Assert.Equal((long)
Http3ErrorCode
.RequestRejected, clientEx.ApplicationErrorCode.Value);
QuicStreamContextTests.cs (12)
81
serverStream.Features.Get<IStreamAbortFeature>().AbortRead((long)
Http3ErrorCode
.NoError, new ConnectionAbortedException("Test message."));
145
clientStream.Abort(QuicAbortDirection.Read, (long)
Http3ErrorCode
.RequestCancelled);
146
clientStream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.RequestCancelled);
272
clientStream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.InternalError);
281
Assert.Equal((long)
Http3ErrorCode
.InternalError, ((QuicException)ex.InnerException).ApplicationErrorCode.Value);
285
Assert.Equal((long)
Http3ErrorCode
.InternalError, quicStreamContext.Error);
350
clientStream.Abort(QuicAbortDirection.Write, (long)
Http3ErrorCode
.InternalError);
356
Assert.Equal((long)
Http3ErrorCode
.InternalError, ((QuicException)ex.InnerException).ApplicationErrorCode.Value);
463
((IProtocolErrorCodeFeature)serverStream).Error = (long)
Http3ErrorCode
.InternalError;
470
Assert.Equal((long)
Http3ErrorCode
.InternalError, ex.ApplicationErrorCode.Value);
507
streamAbortFeature.AbortRead((long)
Http3ErrorCode
.InternalError, new ConnectionAbortedException("Test reason"));
523
Assert.Equal((long)
Http3ErrorCode
.InternalError, clientEx.ApplicationErrorCode.Value);