82 instantiations of ConnectionAbortedException
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionContext.cs (1)
35
public override void Abort() => Abort(new
ConnectionAbortedException
("The connection was aborted by the application via ConnectionContext.Abort()."));
Microsoft.AspNetCore.Server.Kestrel.Core (74)
Internal\Http\Http1Connection.cs (3)
127
_http1Output.Abort(ServerOptions.FinOnError ? new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByClient) : null!, ConnectionEndReason.TransportCompleted);
133
_http1Output.Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByClient), ConnectionEndReason.TransportCompleted);
150
Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByApplication), ConnectionEndReason.AbortedByApp);
Internal\Http\HttpProtocol.cs (1)
1550
var wrappedException = new
ConnectionAbortedException
("The BodyPipe was completed with an exception.", exception);
Internal\Http2\Http2Connection.cs (5)
236
_frameWriter.Abort(useException ? new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByClient) : null!);
268
Abort(new
ConnectionAbortedException
(CoreStrings.BadRequest_RequestHeadersTimeout), Http2ErrorCode.INTERNAL_ERROR, ConnectionEndReason.RequestHeadersTimeout);
276
Abort(new
ConnectionAbortedException
(CoreStrings.BadRequest_RequestBodyTimeout), Http2ErrorCode.INTERNAL_ERROR, ConnectionEndReason.MinRequestBodyDataRate);
446
?? new
ConnectionAbortedException
(CoreStrings.Http2ConnectionFaulted, error!);
1356
Abort(new
ConnectionAbortedException
(CoreStrings.Http2ConnectionFaulted), Http2ErrorCode.ENHANCE_YOUR_CALM, ConnectionEndReason.StreamResetLimitExceeded);
Internal\Http2\Http2FrameWriter.cs (5)
170
var ex = new
ConnectionAbortedException
("HTTP/2 connection exceeded the output operations maximum queue size.");
362
_http2Connection.Abort(new
ConnectionAbortedException
(CoreStrings.Http2ErrorWindowUpdateSizeInvalid, connectionError), http2ErrorCode, reason);
559
_http2Connection.Abort(new
ConnectionAbortedException
(ex.Message, ex), Http2ErrorCode.INTERNAL_ERROR, ConnectionEndReason.ErrorWritingHeaders);
600
_http2Connection.Abort(new
ConnectionAbortedException
(ex.Message, ex), Http2ErrorCode.INTERNAL_ERROR, ConnectionEndReason.ErrorWritingHeaders);
1131
_http2Connection.Abort(new
ConnectionAbortedException
("HTTP/2 connection exceeded the outgoing flow control maximum queue size."), Http2ErrorCode.INTERNAL_ERROR, ConnectionEndReason.FlowControlQueueSizeExceeded);
Internal\Http2\Http2OutputProducer.cs (1)
255
_stream.ResetAndAbort(new
ConnectionAbortedException
($"{nameof(Http2OutputProducer)} has completed."), Http2ErrorCode.INTERNAL_ERROR);
Internal\Http2\Http2Stream.cs (12)
268
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.ConnectRequestsWithProtocolRequireSchemeAndPath), Http2ErrorCode.PROTOCOL_ERROR);
277
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.Http2ErrorConnectMustNotSendSchemeOrPath), Http2ErrorCode.PROTOCOL_ERROR);
288
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.ProtocolRequiresConnect), Http2ErrorCode.PROTOCOL_ERROR);
303
ResetAndAbort(new
ConnectionAbortedException
(
335
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.BadRequest_RequestLineTooLong), Http2ErrorCode.PROTOCOL_ERROR);
355
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.FormatHttp2ErrorMethodInvalid(_methodText)), Http2ErrorCode.PROTOCOL_ERROR);
363
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.FormatHttp2ErrorMethodInvalid(_methodText)), Http2ErrorCode.PROTOCOL_ERROR);
403
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.FormatBadRequest_InvalidHostHeader_Detail(hostText)), Http2ErrorCode.PROTOCOL_ERROR);
416
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.FormatHttp2StreamErrorPathInvalid(RawTarget)), Http2ErrorCode.PROTOCOL_ERROR);
455
ResetAndAbort(new
ConnectionAbortedException
(CoreStrings.FormatHttp2StreamErrorPathInvalid(RawTarget)), Http2ErrorCode.PROTOCOL_ERROR);
583
var abortReason = new
ConnectionAbortedException
(CoreStrings.Http2StreamErrorAfterHeaders);
587
protected override void ApplicationAbort() => ApplicationAbort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByApplication), Http2ErrorCode.INTERNAL_ERROR);
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
64
var abortReason = new
ConnectionAbortedException
(CoreStrings.FormatHttp2StreamResetByApplication((Http2ErrorCode)errorCode));
Internal\Http3\Http3Connection.cs (16)
143
_multiplexedContext.Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByClient));
178
session.Value.Abort(new
ConnectionAbortedException
(ex.Message, ex.InnerException), errorCode);
182
session.Value.Abort(new
ConnectionAbortedException
(ex.Message), errorCode);
275
stream.Abort(
new
("Stream timed out before its type was determined."));
297
stream.Abort(new
ConnectionAbortedException
(CoreStrings.BadRequest_RequestHeadersTimeout), Http3ErrorCode.RequestRejected);
301
stream.Abort(new
ConnectionAbortedException
(CoreStrings.Http3ControlStreamHeaderTimeout), Http3ErrorCode.StreamCreationError);
456
Log.Http3StreamAbort(CoreStrings.FormatUnidentifiedStream(ex.StreamId), Http3ErrorCode.StreamCreationError,
new
(ex.Message));
603
streamContext.Abort(new
ConnectionAbortedException
("HTTP/3 connection is closing and no longer accepts new requests."));
649
stream.Abort(new
ConnectionAbortedException
(CoreStrings.ReceivedLooseWebTransportStream));
668
return new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByClient, error!);
671
return new
ConnectionAbortedException
(CoreStrings.Http3ConnectionFaulted, error!);
746
Abort(new
ConnectionAbortedException
(connectionError.Message, connectionError), connectionError.ErrorCode, ConnectionEndReason.ClosedCriticalStream);
875
Abort(new
ConnectionAbortedException
(ex.Message, ex), ex.ErrorCode, ex.Reason);
908
Abort(new
ConnectionAbortedException
(CoreStrings.BadRequest_RequestHeadersTimeout), ConnectionEndReason.RequestHeadersTimeout);
916
Abort(new
ConnectionAbortedException
(CoreStrings.BadRequest_RequestBodyTimeout), ConnectionEndReason.MinRequestBodyDataRate);
924
Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByClient), Http3ErrorCodeOrNoError, ConnectionEndReason.TransportCompleted);
Internal\Http3\Http3ControlStream.cs (1)
241
Abort(new
ConnectionAbortedException
(ex.Message), ex.ErrorCode);
Internal\Http3\Http3FrameWriter.cs (4)
321
_connectionContext.Abort(new
ConnectionAbortedException
(ex.Message, ex));
322
_http3Stream.Abort(new
ConnectionAbortedException
(ex.Message, ex), Http3ErrorCode.InternalError);
376
_connectionContext.Abort(new
ConnectionAbortedException
(ex.Message, ex));
377
_http3Stream.Abort(new
ConnectionAbortedException
(ex.Message, ex), Http3ErrorCode.InternalError);
Internal\Http3\Http3OutputProducer.cs (1)
115
_stream.Abort(new
ConnectionAbortedException
($"{nameof(Http3OutputProducer)}.{nameof(ProcessDataWrites)} has completed."), Http3ErrorCode.InternalError);
Internal\Http3\Http3Stream.cs (15)
186
abortReason = new
ConnectionAbortedException
(exception.Message, exception);
214
var abortReason = new
ConnectionAbortedException
(CoreStrings.Http3StreamErrorAfterHeaders);
582
_streamAbortFeature.AbortRead((long)Http3ErrorCode.NoError, new
ConnectionAbortedException
("The application completed without reading the entire request body."));
683
Abort(new
ConnectionAbortedException
(ex.Message, ex), ex.ErrorCode);
727
?? new
ConnectionAbortedException
("The stream has completed.", error!);
986
protected override void ApplicationAbort() => ApplicationAbort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByApplication), Http3ErrorCode.InternalError);
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 (1)
58
var abortReason = new
ConnectionAbortedException
(message);
Internal\HttpConnection.cs (2)
291
Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionTimedBecauseResponseMininumDataRateNotSatisfied), ConnectionEndReason.MinResponseDataRate);
295
Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionTimedOutByServer), ConnectionEndReason.ServerTimeout);
Internal\Infrastructure\PipeWriterHelpers\TimingPipeFlusher.cs (1)
95
outputAborter.Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionOrStreamAbortedByCancellationToken, ex), ConnectionEndReason.WriteCanceled);
Internal\Infrastructure\TransportConnectionManager.cs (1)
85
connection.TransportConnection.Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedDuringServerShutdown));
Internal\WebTransport\WebTransportSession.cs (4)
64
Abort(
new
(), (Http3ErrorCode)errorCode);
109
stream.Value.Abort(new
ConnectionAbortedException
(exception.Message, exception.InnerException));
113
stream.Value.Abort(new
ConnectionAbortedException
(exception.Message));
162
stream.Abort(new
ConnectionAbortedException
(CoreStrings.WebTransportFailedToAddStreamToPendingQueue));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (7)
Internal\QuicConnectionContext.cs (3)
73
public override void Abort() => Abort(new
ConnectionAbortedException
("The connection was aborted by the application via MultiplexedConnectionContext.Abort()."));
156
Abort(new
ConnectionAbortedException
("Unexpected error when accepting stream.", ex));
170
Abort(new
ConnectionAbortedException
("The connection timed out waiting for a response from the peer.", ex));
Internal\QuicStreamContext.cs (2)
18
private static readonly ConnectionAbortedException SendGracefullyCompletedException = new
ConnectionAbortedException
("The QUIC transport's send loop completed gracefully.");
295
error = new
ConnectionAbortedException
(ex.Message, ex);
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.FeatureCollection.cs (1)
40
void IConnectionLifetimeFeature.Abort() => Abort(new
ConnectionAbortedException
("The connection was aborted by the application via IConnectionLifetimeFeature.Abort()."));
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.FeatureCollection.cs (1)
31
void IConnectionLifetimeFeature.Abort() => Abort(new
ConnectionAbortedException
("The connection was aborted by the application via IConnectionLifetimeFeature.Abort()."));
76 references to ConnectionAbortedException
Microsoft.AspNetCore.Connections.Abstractions (12)
BaseConnectionContext.cs (2)
56
/// <param name="abortReason">A <see cref="
ConnectionAbortedException
"/> describing the reason the connection is being terminated.</param>
57
public abstract void Abort(
ConnectionAbortedException
abortReason);
ConnectionContext.cs (2)
23
/// <param name="abortReason">A <see cref="
ConnectionAbortedException
"/> describing the reason the connection is being terminated.</param>
24
public override void Abort(
ConnectionAbortedException
abortReason)
DefaultConnectionContext.cs (1)
99
public override void Abort(
ConnectionAbortedException
abortReason)
Exceptions\ConnectionAbortedException.cs (3)
14
/// Initializes a new instance of <see cref="
ConnectionAbortedException
"/>.
22
/// Initializes a new instance of <see cref="
ConnectionAbortedException
"/>.
30
/// Initializes a new instance of <see cref="
ConnectionAbortedException
"/>.
Features\IStreamAbortFeature.cs (4)
15
/// <param name="abortReason">A <see cref="
ConnectionAbortedException
"/> describing the reason to abort the read side of the connection stream.</param>
16
void AbortRead(long errorCode,
ConnectionAbortedException
abortReason);
22
/// <param name="abortReason">A <see cref="
ConnectionAbortedException
"/> describing the reason to abort the write side of the connection stream.</param>
23
void AbortWrite(long errorCode,
ConnectionAbortedException
abortReason);
Microsoft.AspNetCore.Server.Kestrel.Core (57)
_generated\0\LoggerMessage.g.cs (3)
862
public static partial void Http2StreamResetAbort(global::Microsoft.Extensions.Logging.ILogger logger, string traceIdentifier, global::Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2ErrorCode error, global::Microsoft.AspNetCore.Connections.
ConnectionAbortedException
abortReason)
968
public static partial void Http2QueueOperationsExceeded(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, global::Microsoft.AspNetCore.Connections.
ConnectionAbortedException
ex)
1192
public static partial void Http3StreamAbort(global::Microsoft.Extensions.Logging.ILogger logger, string traceIdentifier, string error, global::Microsoft.AspNetCore.Connections.
ConnectionAbortedException
abortReason)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
72
catch (
ConnectionAbortedException
ex)
Internal\Http\Http1Connection.cs (1)
140
public void Abort(
ConnectionAbortedException
abortReason, ConnectionEndReason reason)
Internal\Http\Http1ContentLengthMessageBody.cs (1)
64
catch (
ConnectionAbortedException
ex)
Internal\Http\Http1MessageBody.cs (1)
103
catch (OperationCanceledException ex) when (ex is
ConnectionAbortedException
|| ex is TaskCanceledException)
Internal\Http\Http1OutputProducer.cs (1)
462
public void Abort(
ConnectionAbortedException
error, ConnectionEndReason reason)
Internal\Http\HttpProtocol.cs (2)
618
catch (
ConnectionAbortedException
ex)
1550
var
wrappedException = new ConnectionAbortedException("The BodyPipe was completed with an exception.", exception);
Internal\Http\HttpRequestStream.cs (1)
107
catch (
ConnectionAbortedException
ex)
Internal\Http\IHttpOutputAborter.cs (1)
10
void Abort(
ConnectionAbortedException
abortReason, ConnectionEndReason reason);
Internal\Http2\Http2Connection.cs (5)
246
public void Abort(
ConnectionAbortedException
ex, ConnectionEndReason reason)
251
public void Abort(
ConnectionAbortedException
ex, Http2ErrorCode errorCode, ConnectionEndReason reason)
415
catch (
ConnectionAbortedException
ex)
445
var
connectionError = error as
ConnectionAbortedException
Internal\Http2\Http2FrameWriter.cs (2)
170
var
ex = new ConnectionAbortedException("HTTP/2 connection exceeded the output operations maximum queue size.");
458
public void Abort(
ConnectionAbortedException
error)
Internal\Http2\Http2MessageBody.cs (1)
115
catch (
ConnectionAbortedException
ex)
Internal\Http2\Http2OutputProducer.cs (1)
248
void IHttpOutputAborter.Abort(
ConnectionAbortedException
abortReason, ConnectionEndReason reason)
Internal\Http2\Http2Stream.cs (3)
583
var
abortReason = new ConnectionAbortedException(CoreStrings.Http2StreamErrorAfterHeaders);
589
private void ApplicationAbort(
ConnectionAbortedException
abortReason, Http2ErrorCode error)
594
internal void ResetAndAbort(
ConnectionAbortedException
abortReason, Http2ErrorCode error)
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
64
var
abortReason = new ConnectionAbortedException(CoreStrings.FormatHttp2StreamResetByApplication((Http2ErrorCode)errorCode));
Internal\Http3\Http3Connection.cs (5)
157
public void Abort(
ConnectionAbortedException
ex, ConnectionEndReason reason)
162
public void Abort(
ConnectionAbortedException
ex, Http3ErrorCode errorCode, ConnectionEndReason reason)
487
catch (
ConnectionAbortedException
ex)
659
private static
ConnectionAbortedException
CreateConnectionAbortError(Exception? error, bool clientAbort)
661
if (error is
ConnectionAbortedException
abortedException)
Internal\Http3\Http3ControlStream.cs (1)
91
public void Abort(
ConnectionAbortedException
abortReason, Http3ErrorCode errorCode)
Internal\Http3\Http3FrameWriter.cs (1)
425
public void Abort(
ConnectionAbortedException
error)
Internal\Http3\Http3MessageBody.cs (1)
83
catch (
ConnectionAbortedException
ex)
Internal\Http3\Http3OutputProducer.cs (1)
108
void IHttpOutputAborter.Abort(
ConnectionAbortedException
abortReason, ConnectionEndReason reason)
Internal\Http3\Http3PendingStream.cs (2)
11
private
ConnectionAbortedException
? _abortedException;
25
public void Abort(
ConnectionAbortedException
exception)
Internal\Http3\Http3Stream.cs (7)
163
public void Abort(
ConnectionAbortedException
abortReason, Http3ErrorCode errorCode)
184
if (!(exception is
ConnectionAbortedException
abortReason))
214
var
abortReason = new ConnectionAbortedException(CoreStrings.Http3StreamErrorAfterHeaders);
692
catch (
ConnectionAbortedException
ex)
726
var
streamError = error as
ConnectionAbortedException
988
private void ApplicationAbort(
ConnectionAbortedException
abortReason, Http3ErrorCode error)
Internal\Http3\Http3Stream.FeatureCollection.cs (1)
58
var
abortReason = new ConnectionAbortedException(message);
Internal\Http3\IHttp3Stream.cs (1)
50
void Abort(
ConnectionAbortedException
abortReason, Http3ErrorCode errorCode);
Internal\HttpConnection.cs (1)
191
private void Abort(
ConnectionAbortedException
ex, ConnectionEndReason reason)
Internal\Infrastructure\KestrelTrace.Http2.cs (4)
27
public void Http2StreamResetAbort(string traceIdentifier, Http2ErrorCode error,
ConnectionAbortedException
abortReason)
68
public void Http2QueueOperationsExceeded(string connectionId,
ConnectionAbortedException
ex)
115
public static partial void Http2StreamResetAbort(ILogger logger, string traceIdentifier, Http2ErrorCode error,
ConnectionAbortedException
abortReason);
136
public static partial void Http2QueueOperationsExceeded(ILogger logger, string connectionId,
ConnectionAbortedException
ex);
Internal\Infrastructure\KestrelTrace.Http3.cs (2)
28
public void Http3StreamAbort(string traceIdentifier, Http3ErrorCode error,
ConnectionAbortedException
abortReason)
84
public static partial void Http3StreamAbort(ILogger logger, string traceIdentifier, string error,
ConnectionAbortedException
abortReason);
Internal\IRequestProcessor.cs (1)
17
void Abort(
ConnectionAbortedException
ex, ConnectionEndReason reason);
Internal\WebTransport\WebTransportSession.cs (1)
91
internal void Abort(
ConnectionAbortedException
exception, Http3ErrorCode error)
Internal\WebTransport\WebTransportStream.cs (1)
77
public override void Abort(
ConnectionAbortedException
abortReason)
Middleware\LoggingMultiplexedConnectionMiddleware.cs (2)
52
public override void Abort(
ConnectionAbortedException
abortReason)
106
public override void Abort(
ConnectionAbortedException
abortReason)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (7)
Internal\QuicConnectionContext.cs (1)
75
public override void Abort(
ConnectionAbortedException
abortReason)
Internal\QuicStreamContext.cs (2)
18
private static readonly
ConnectionAbortedException
SendGracefullyCompletedException = new ConnectionAbortedException("The QUIC transport's send loop completed gracefully.");
480
public override void Abort(
ConnectionAbortedException
abortReason)
Internal\QuicStreamContext.FeatureCollection.cs (2)
59
public void AbortRead(long errorCode,
ConnectionAbortedException
abortReason)
81
public void AbortWrite(long errorCode,
ConnectionAbortedException
abortReason)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.cs (1)
70
public override void Abort(
ConnectionAbortedException
abortReason)
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.cs (1)
57
public override void Abort(
ConnectionAbortedException
abortReason)