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

Fix WinHttp StreamingTest backward compat Version #104722

Merged
merged 4 commits into from
Jul 12, 2024
Merged
Changes from 2 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 @@ -22,7 +22,9 @@ public BidirectionStreamingTest(ITestOutputHelper output) : base(output)

// Build number suggested by the WinHttp team.
// It can be reduced if bidirectional streaming is backported.
public static bool OsSupportsWinHttpBidirectionalStreaming => Environment.OSVersion.Version >= new Version(10, 0, 22357, 0);
public static bool OsSupportsWinHttpBidirectionalStreaming => Environment.OSVersion.Version >= new Version(10, 0, 22357, 0)
|| Environment.OSVersion.Version == new Version(10, 0, 20348, 0); // This is required for WS2022
// because WINHTTP_FLAG_AUTOMATIC_CHUNKING is backported to WS2022.
liveans marked this conversation as resolved.
Show resolved Hide resolved

public static bool TestsEnabled => OsSupportsWinHttpBidirectionalStreaming && PlatformDetection.SupportsAlpn;

Expand Down Expand Up @@ -324,7 +326,6 @@ async Task RunServer()
}

[ConditionalFact(nameof(TestsBackwardsCompatibilityEnabled))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/103754")]
public async Task BackwardsCompatibility_DowngradeToHttp11()
{
TaskCompletionSource<object> completeStreamTcs = new TaskCompletionSource<object>(TaskCreationOptions.RunContinuationsAsynchronously);
Expand Down
Loading