Skip to content

Re-enable PlatformHandlerTest_Cookies_Http2 for WinHttpHandler#125261

Open
ManickaP wants to merge 1 commit intodotnet:mainfrom
ManickaP:fix/reenable-33930-winhttp-cookies
Open

Re-enable PlatformHandlerTest_Cookies_Http2 for WinHttpHandler#125261
ManickaP wants to merge 1 commit intodotnet:mainfrom
ManickaP:fix/reenable-33930-winhttp-cookies

Conversation

@ManickaP
Copy link
Member

@ManickaP ManickaP commented Mar 6, 2026

Fixes #33930

Summary

Removes the #if !WINHTTPHANDLER_TEST preprocessor guard that was disabling the entire PlatformHandlerTest_Cookies_Http2 test class for WinHttpHandler.

Validation

  • Built and ran GetAsync_ReceiveSetCookieHeader tests on Windows (both net11.0 and net481 TFMs).
  • Ran 20 consecutive iterations with 0 failures across all runs (60 tests on net11.0 + 28 tests on net481 per run).
  • No flakiness observed.

PlatformHandlerTest_Cookies_Http2 from WinHttpHandler test builds.
The test was disabled in March 2020 due to WinHttp error 12030
(connection terminated abnormally) during HTTP/2 cookie tests. The
WinHttpHandler has received significant updates since then.

Fixes dotnet#33930

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 6, 2026 09:04
@ManickaP
Copy link
Member Author

ManickaP commented Mar 6, 2026

The original root cause was closing the server before client finishes processing the request and WinHTTP discarding the buffered data.
This is just test re-enabling, if this blows up again, I can introduce synchronization in the tests.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Re-enables the previously disabled HTTP/2 cookies functional test class for WinHttpHandler, aligning WinHttpHandler coverage with other handlers and addressing #33930 by removing a compile-time exclusion.

Changes:

  • Removed the #if !WINHTTPHANDLER_TEST preprocessor guard that excluded PlatformHandlerTest_Cookies_Http2 from WinHttpHandler test builds.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WinHttpHandler] PlatformHandlerTest_Cookies_Http2.GetAsync_ReceiveSetCookieHeader test failure

3 participants