Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rzikm committed May 15, 2024
1 parent dbfa163 commit 768b28e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,13 @@ private void HandleReadResponseContentException(Exception ex, CancellationToken
_connection.Abort(exception);
throw exception;

case QuicException e when (e.QuicError == QuicError.OperationAborted && _connection.AbortException != null):
// we closed the connection already, propagate the AbortException
HttpRequestError httpRequestError = _connection.AbortException is HttpProtocolException
? HttpRequestError.HttpProtocolError
: HttpRequestError.Unknown;
throw new HttpRequestException(httpRequestError, SR.net_http_client_execution_error, _connection.AbortException);

case HttpIOException:
_connection.Abort(ex);
ExceptionDispatchInfo.Throw(ex); // Rethrow.
Expand Down

0 comments on commit 768b28e

Please sign in to comment.