Repository navigation
[test-quarantine] Stabilize WebSocket ping timeout test - #68218
Merged
BrennanConroy merged 7 commits intoAug 19, 2026
Merged
BrennanConroy merged 7 commits into
BrennanConroy merged 7 commits into
Conversation
Contributor
|
Thanks for your PR, @MohamedHasan3644. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
MohamedHasan3644
marked this pull request as ready for review
August 5, 2026 10:39
Contributor
There was a problem hiding this comment.
Pull request overview
This PR stabilizes the WebSocketMiddlewareTests.PingTimeoutCancelsReceiveAsync unit test by reducing an upgrade/keep-alive race and then removes its quarantine marker, returning it to the normal test pool.
Changes:
- Removed
[QuarantinedTest]fromPingTimeoutCancelsReceiveAsyncnow that it’s stabilized. - Increased
WebSocketOptions.KeepAliveIntervalandKeepAliveTimeoutfrom 1ms to 50ms to avoid aborting during the client’s upgrade processing.
sheiksyedm
temporarily deployed
to
copilot-pat-pool
August 12, 2026 10:49 — with
GitHub Actions
Inactive
sheiksyedm
temporarily deployed
to
copilot-pat-pool
August 12, 2026 10:50 — with
GitHub Actions
Inactive
Member
|
Thanks for your contribution. This is not Blazor related area, so let's close this PR and align on the effort. |
| } | ||
|
|
||
| [Fact] | ||
| [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/65080")] |
Member
There was a problem hiding this comment.
Don't remove this. The bot will do it automatically after ~30 days of no failures.
Contributor
Author
There was a problem hiding this comment.
Hi @BrennanConroy / @kotlarmilos I have added the QuarantinedTest tag add committed the changes.
…socket-ping-timeout-test
…socket-ping-timeout-test
kotlarmilos
approved these changes
Aug 19, 2026
BrennanConroy
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stabilize WebSocket ping timeout test
Description
This PR fixes an intermittent failure in
WebSocketMiddlewareTests.PingTimeoutCancelsReceiveAsync.The test configured both
KeepAliveIntervalandKeepAliveTimeoutto one millisecond. These values were too aggressive and allowed the server to abort the WebSocket connection before the HTTP client completed processing the upgrade response.When this race occurred,
HttpClient.SendAsyncfailed with a connection reset instead of allowing the test to observe the expectedConnectionAbortedExceptionorWebSocketExceptionfrom the server-sideReceiveAsyncoperation.The keep-alive interval and timeout have been increased from 1 ms to 50 ms. This still exercises the ping-timeout behavior while giving the WebSocket handshake enough time to complete reliably.
The quarantine attribute has been removed from the stabilized test.
Validation / Investigation
ConnectionAbortedExceptionorWebSocketException.Changes
KeepAliveIntervalfrom 1 ms to 50 ms.KeepAliveTimeoutfrom 1 ms to 50 ms.[QuarantinedTest]attribute fromPingTimeoutCancelsReceiveAsync.Fixes #65080