Repository navigation
Stabilize HTTP/2 stream pooling test - #70281
Merged
Merged
Conversation
Wait for the HTTP/2 stream to return to the server pool before sending the second request, matching the existing HTTP/3 synchronization and preserving the reference reuse assertions. Co-authored-by: Copilot <[email protected]>
BrennanConroy
marked this pull request as ready for review
November 4, 2026 19:00
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The HTTP/2 pooling wait can miss a valid event during its unchecked final delay, causing spurious test failures; it needs to poll and recheck through the normal test timeout.
1 open issue
What changed in this PR
This PR addresses the HTTP/2 pooling race behind #52573 by waiting for server-side pooling before sending the second request.
Changes:
- Add an HTTP/2 trace event after a stream enters the reuse pool.
- Wait for the protocol-specific pooling event, preserving the existing HTTP/3 synchronization, quarantine, and reference-reuse assertions.
| File | Description |
|---|---|
src/Servers/Kestrel/test/Interop.FunctionalTests/Http3/Http3RequestTests.cs |
Extend the pooling wait to HTTP/2. |
src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelTrace.Http2.cs |
Define the Http2StreamPooled trace event. |
src/Servers/Kestrel/Core/src/Internal/Http2/Http2Connection.cs |
Emit the event after adding a stream to the pool. |
Review effort: Balanced
Member
|
/review |
Co-authored-by: Copilot <[email protected]>
Member
Author
|
/azp run aspnetcore-components-e2e 🤖 Posted by Flaky (AI Agent) |
|
No pipelines are associated with this pull request. |
Member
|
/review |
This was referenced Nov 6, 2026
DeagleGross
approved these changes
Nov 10, 2026
DeagleGross
enabled auto-merge (squash)
November 10, 2026 10:06
DeagleGross
temporarily deployed
to
copilot-pat-pool
November 10, 2026 11:08 — with
GitHub Actions
Inactive
DeagleGross
temporarily deployed
to
copilot-pat-pool
November 10, 2026 11:09 — with
GitHub Actions
Inactive
DeagleGross
temporarily deployed
to
copilot-pat-pool
November 10, 2026 11:10 — with
GitHub Actions
Inactive
DeagleGross
temporarily deployed
to
copilot-pat-pool
November 10, 2026 11:12 — with
GitHub Actions
Inactive
DeagleGross
temporarily deployed
to
copilot-pat-pool
November 10, 2026 11:13 — with
GitHub Actions
Inactive
DeagleGross
temporarily deployed
to
copilot-pat-pool
November 10, 2026 11:13 — with
GitHub Actions
Inactive
Contributor
|
✅ No documentation PR was created. Confidence that documentation is needed: 3% No docs needed: the PR stabilizes a flaky test and adds an internal Kestrel trace event. Documentation surfaces considered
|
DeagleGross
temporarily deployed
to
copilot-pat-pool
November 10, 2026 11:13 — with
GitHub Actions
Inactive
This was referenced Nov 10, 2026
wtgodbe
added a commit
that referenced
this pull request
Nov 11, 2026
Backport of #70281. (cherry picked from commit 51ed718) Co-authored-by: Brennan <[email protected]> Co-authored-by: BrennanConroy <[email protected]> Co-authored-by: Copilot <[email protected]>
wtgodbe
added a commit
that referenced
this pull request
Nov 11, 2026
Backport of #70281. (cherry picked from commit 51ed718) Co-authored-by: Brennan <[email protected]> Co-authored-by: BrennanConroy <[email protected]> Co-authored-by: Copilot <[email protected]>
This was referenced Nov 12, 2026
Open
This branch was previously deployed
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 HTTP/2 stream pooling test
Synchronize the HTTP/2 stream pooling assertion
Description
The client can receive the first response before Kestrel's asynchronous request teardown returns its HTTP/2 stream to the pool. The second request can then allocate a different stream, causing the intentional reference-reuse assertions to fail even though pooling is working.
Add a trace event when an HTTP/2 stream enters the pool and wait for that event before sending the second request, matching the existing HTTP/3 synchronization. The quarantine and
Assert.Samechecks remain unchanged.Issue: #52573
🤖 Posted by Flaky (AI Agent)