Skip to content
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

Check _abortException before checking _shutdown flag #56552

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,11 @@ private void AddStream(Http2Stream http2Stream)
Shutdown();
}

if (_abortException is not null)
{
throw GetRequestAbortedException(_abortException);
}

if (_shutdown)
{
// The connection has shut down. Throw a retryable exception so that this request will be handled on another connection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ public async Task Http2_ServerSendsValidSettingsValues_Success()
}
}

[ActiveIssue("https://github.com/dotnet/runtime/issues/1581")]
[ConditionalTheory(nameof(SupportsAlpn))]
[InlineData(SettingId.MaxFrameSize, 16383)]
[InlineData(SettingId.MaxFrameSize, 162777216)]
Expand Down