Skip to content

Added operation cancel operation #46330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Feb 16, 2023
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changes as per comment
  • Loading branch information
singh733 committed Feb 15, 2023
commit 357a8c4b4d034549ea490c49ab92b56224de8d8f
4 changes: 2 additions & 2 deletions src/Servers/IIS/IIS/src/Core/IISHttpContextOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public override async Task<bool> ProcessRequestAsync()
}
catch (Exception ex)
{
if ((ex is OperationCanceledException || ex is IOException) && _requestAborted)
if ((ex is OperationCanceledException || ex is IOException) && ClientDisconnected)
{
ReportRequestAborted();
}
Expand Down Expand Up @@ -92,7 +92,7 @@ public override async Task<bool> ProcessRequestAsync()
else if (!HasResponseStarted && _requestRejectedException == null)
{
// If the request was aborted and no response was sent, we use status code 499 for logging
StatusCode = StatusCodes.Status499ClientClosedRequest;
StatusCode = ClientDisconnected ? StatusCodes.Status499ClientClosedRequest : 0;
success = false;
}

Expand Down