Skip to content

[release/11.0] Stabilize HTTP/2 stream pooling test - #70489

Merged
wtgodbe merged 1 commit into
release/11.0from
wtgodbe/backport-http2-pool-sync-release11
Nov 11, 2026
Merged

wtgodbe merged 1 commit into
release/11.0from
wtgodbe/backport-http2-pool-sync-release11

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Nov 10, 2026

Copy link
Copy Markdown
Member

Backport of #70281 to release/11.0.

Wait for the first HTTP/2 stream to enter the server pool before sending the second request, matching the existing HTTP/3 synchronization. Add the trace event used by that wait and poll within the existing default timeout. Preserve the quarantine and reference-reuse assertions.

The thirty-day PR audit found a release/11.0 failure of POST_MultipleRequests_PooledStreamAndHeaders. This is distinct from the QUIC stream-context reuse assertion and from the product HTTP/2 hang backport in #70099.

Validation:

  • Exact upstream additions/deletions, three-file scope, C# syntax, unique new HTTP/2 logging event ID, unchanged quarantine attributes, and git diff --check verified.
  • Full Interop functional-test execution blocked before compilation by missing pinned SDK 11.0.100-rc.3.26522.148; integration validation requires CI.

Backport of #70281.

(cherry picked from commit 51ed718)

Co-authored-by: BrennanConroy <[email protected]>
Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 10, 2026 23:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The missing pinned SDK blocked Interop execution, leaving timing-sensitive HTTP/2 and HTTP/3 pooling stabilization unverified pending CI execution.

No open issues 🎉

What changed in this PR

This backport stabilizes Kestrel’s HTTP/2 stream-pooling test on release/11.0 by waiting for server-side pooling before sending the second request, matching the existing HTTP/3 synchronization.

Changes:

  • Add an HTTP/2 trace event emitted after a stream enters the pool.
  • Wait for the protocol-specific pooling event while preserving quarantine and reference-reuse assertions.
  • Replace fixed retry counts with polling bounded by the existing default timeout when no debugger is attached.

Full integration validation remains dependent on CI because the pinned SDK was unavailable locally.

File Description
src/​Servers/​Kestrel/​test/​Interop.FunctionalTests/​Http3/​Http3RequestTests.cs Wait for HTTP/2 pooling and use timeout-based log polling.
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 trace event after pooling a stream.

Review effort: Balanced

@PureWeen

Copy link
Copy Markdown
Member

/review

@wtgodbe wtgodbe added the tell-mode Indicates a PR which is being merged during tell-mode label Nov 11, 2026
@wtgodbe
wtgodbe merged commit 3e7cfe3 into release/11.0 Nov 11, 2026
37 checks passed
@wtgodbe
wtgodbe deleted the wtgodbe/backport-http2-pool-sync-release11 branch November 11, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants