Skip to content

[release/11.0] Keep QUIC backlog test clients alive through server handshakes - #137890

Merged
lewing merged 1 commit into
release/11.0from
backport/pr-136507-to-release/11.0
Nov 23, 2026
Merged

lewing merged 1 commit into
release/11.0from
backport/pr-136507-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #136507 to release/11.0

/cc @ManickaP @rzikm

Fixes #136558

Customer Impact

  • Customer reported
  • Found internally

Regression

  • Yes
  • No

Testing

CI

Risk

Low. Test only change, Tell Mode.

<!-- -->

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 `AcceptConnectionAsync` to throw
`AuthenticationException` with `UserCanceled`.

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 to `UserCanceled`. This
reproduces the failure mechanism and stack, not the exact AzureLinux CI
occurrence.

- `build.cmd clr+libs -rc release`: passed, no warnings or errors.
- Normal and outerloop parallel-backlog cases: **12/12 passed** on both
Schannel and OpenSSL.
- Full QUIC functional suite on Windows: Schannel **448 passed, 1
existing platform skip**; OpenSSL **446 passed, 3 existing
platform/backend skips**. Both had zero failures, errors, or unobserved
exceptions.

Resolves #133515

> [!NOTE]
> This pull request description and code change were generated with
GitHub Copilot.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@ManickaP

Copy link
Copy Markdown
Member

/ba-g unrelated

@ManickaP ManickaP added the Servicing-approved Approved for servicing release label Nov 20, 2026
@lewing
lewing merged commit dd0b850 into release/11.0 Nov 23, 2026
86 of 90 checks passed
@lewing
lewing deleted the backport/pr-136507-to-release/11.0 branch November 23, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants