60 references to ConnectionAbortedException
Microsoft.AspNetCore.Connections.Abstractions (2)
ConnectionContext.cs (1)
35
public override void Abort() => Abort(new
ConnectionAbortedException
("The connection was aborted by the application via ConnectionContext.Abort()."));
Exceptions\ConnectionAbortedException.cs (1)
17
this
("The connection was aborted")
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IHttpRequestLifetimeFeature.cs (1)
51
Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByApplication));
Microsoft.AspNetCore.Server.Kestrel.Core (53)
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\Http2\Http2Connection.cs (4)
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);
1356
Abort(new
ConnectionAbortedException
(CoreStrings.Http2ConnectionFaulted), Http2ErrorCode.ENHANCE_YOUR_CALM, ConnectionEndReason.StreamResetLimitExceeded);
Internal\Http2\Http2FrameWriter.cs (2)
170
var ex = new
ConnectionAbortedException
("HTTP/2 connection exceeded the output operations maximum queue size.");
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 (11)
143
_multiplexedContext.Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedByClient));
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));
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\Http3OutputProducer.cs (1)
115
_stream.Abort(new
ConnectionAbortedException
($"{nameof(Http3OutputProducer)}.{nameof(ProcessDataWrites)} has completed."), Http3ErrorCode.InternalError);
Internal\Http3\Http3Stream.cs (11)
214
var abortReason = new
ConnectionAbortedException
(CoreStrings.Http3StreamErrorAfterHeaders);
582
_streamAbortFeature.AbortRead((long)Http3ErrorCode.NoError, new
ConnectionAbortedException
("The application completed without reading the entire request body."));
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);
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\TransportConnectionManager.cs (1)
85
connection.TransportConnection.Abort(new
ConnectionAbortedException
(CoreStrings.ConnectionAbortedDuringServerShutdown));
Internal\WebTransport\WebTransportSession.cs (2)
113
stream.Value.Abort(new
ConnectionAbortedException
(exception.Message));
162
stream.Abort(new
ConnectionAbortedException
(CoreStrings.WebTransportFailedToAddStreamToPendingQueue));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Internal\QuicConnectionContext.cs (1)
73
public override void Abort() => Abort(new
ConnectionAbortedException
("The connection was aborted by the application via MultiplexedConnectionContext.Abort()."));
Internal\QuicStreamContext.cs (1)
18
private static readonly ConnectionAbortedException SendGracefullyCompletedException = new
ConnectionAbortedException
("The QUIC transport's send loop completed gracefully.");
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()."));