Repository navigation
Keep QUIC backlog test clients alive through server handshakes - #136507
Merged
Merged
Conversation
Retain successful parallel clients until all pending server connections are accepted, then dispose them in finally. Early client disposal can terminate an unconfirmed server handshake with transport APPLICATION_ERROR, surfaced as UserCanceled. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
Contributor
|
Tagging subscribers to this area: @karelz, @dotnet/ncl |
ManickaP
approved these changes
Oct 27, 2026
Member
|
/backport to release/11.0 |
Contributor
|
Started backporting to |
2 of 4 tasks
lewing
pushed a commit
that referenced
this pull request
Nov 23, 2026
…ndshakes (#137890) Backport of #136507 to release/11.0 /cc @ManickaP @rzikm Fixes #136558 ## Customer Impact - [ ] Customer reported - [x] Found internally ## Regression - [ ] Yes - [x] No ## Testing CI ## Risk Low. Test only change, Tell Mode. Co-authored-by: Radek Zikmund <[email protected]> Co-authored-by: Copilot App <[email protected]>
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.
The parallel listener-backlog test disposes each successful client before accepting the server-side connections. Client handshake completion does not guarantee that the server has received the client's Finished message. Early disposal can therefore terminate a pending server handshake, causing
AcceptConnectionAsyncto throwAuthenticationExceptionwithUserCanceled.Keep successful clients alive until all pending server connections are accepted and the assertions finish, then dispose them in
finally. This changes only test lifetime management; the exact backlog/refusal counts and accept-cancellation assertions remain unchanged. No product changes, additional skips, or timeout increases.Evidence and validation
A controlled loopback UDP-loss reproduction using official .NET 11 and the same MsQuic OpenSSL 2.6.3 version as the failing CI run failed 8/10 times with the original lifetime and passed 100/100 times with retained clients. Tracing shows the client connecting and disposing before server handshake completion; the server receives transport
APPLICATION_ERROR(11), which MsQuic maps toUserCanceled. This reproduces the failure mechanism and stack, not the exact AzureLinux CI occurrence.build.cmd clr+libs -rc release: passed, no warnings or errors.Resolves #133515
Note
This pull request description and code change were generated with GitHub Copilot.