Skip to content

Avoid initial HTTP/2 stream-limit retry in queue telemetry test - #138128

Merged
rzikm merged 1 commit into
dotnet:mainfrom
rzikm:rzikm/http2-telemetry-event-count
Nov 23, 2026
Merged

rzikm merged 1 commit into
dotnet:mainfrom
rzikm:rzikm/http2-telemetry-event-count

Conversation

@rzikm

@rzikm rzikm commented Nov 23, 2026

Copy link
Copy Markdown
Member

TelemetryTest_Http20.EventSource_ConnectionPoolAtMaxConnections_LogsRequestLeftQueue failed on Windows and Linux ARM64 with four RequestHeadersStart events instead of three. Initial server SETTINGS can lower the stream limit while the pool holds a temporary stream reservation, causing the dummy request to retry after its header-start event has already been emitted.

Set InitialHttp2MaxConcurrentStreams to 1 to match the loopback server from connection creation. This prevents the setup race while preserving every event-count assertion and all protocol coverage. Recent-change causation has not been established.

Validation on Windows x64:

  • build.cmd clr+libs -rc Release: passed, 0 warnings/errors.
  • dotnet.cmd build src\libraries\System.Net.Http\tests\FunctionalTests\System.Net.Http.Functional.Tests.csproj -t:Test -p:RuntimeConfiguration=Release -p:OuterLoop=true "-p:XunitMethodName=System.Net.Http.Functional.Tests.TelemetryTest_*.EventSource_ConnectionPoolAtMaxConnections_LogsRequestLeftQueue": passed all 3 HTTP/1.1, HTTP/2, and HTTP/3 cases; the same cases passed 20 additional runs (60/60, no skips).
  • A controlled standalone reproducer against the locally built runtime produced the extra header-start event and an AddStream retry with the default limit; matching the initial limit passed 100/100 controlled runs.

Linux ARM64 was not run locally.

Note

This pull request description and code change were generated with GitHub Copilot.

Match the handler's initial HTTP/2 stream limit to the loopback server so initial SETTINGS cannot invalidate a temporary pool reservation and add an extra RequestHeadersStart event.

Co-authored-by: Copilot App <[email protected]>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
11 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.

@rzikm
rzikm enabled auto-merge (squash) November 23, 2026 15:36
@rzikm
rzikm merged commit 7eb6eff into dotnet:main Nov 23, 2026
65 of 67 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 24, 2026
@lewing

lewing commented Nov 24, 2026

Copy link
Copy Markdown
Member

/backport to release/11.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0 (link to workflow run)

lewing pushed a commit that referenced this pull request Nov 24, 2026
…etry test (#138214)

Backport of #138128 to release/11.0. Test-only; no product code changes.

/cc @lewing @rzikm

Sets `InitialHttp2MaxConcurrentStreams = 1` in
`EventSource_ConnectionPoolAtMaxConnections_LogsRequestLeftQueue` so the
server's initial SETTINGS can't lower the stream limit while the pool
holds a temporary reservation, which caused a retry and an extra
`RequestHeadersStart` event that failed the test intermittently.

# Customer Impact
None; test-only.

# Regression
No.

# Testing
Clean cherry-pick of test-only changes; PR CI runs the tests.

# Risk
Low; test-only.

Co-authored-by: Radek Zikmund <[email protected]>
Co-authored-by: Copilot App <[email protected]>
lewing added a commit that referenced this pull request Nov 24, 2026
…etry test (#138218)

Backport of #138128 to release/10.0. Test-only; no product code changes.

Sets the initial HTTP/2 stream limit through the 10.0 internal-property
test accessor to prevent retries that emit an extra telemetry event.

# Customer Impact
None; test-only.

# Regression
No.

# Testing
Compiled System.Net.Http.Functional.Tests with SDK 10.0.115; the focused
HTTP/1.1 and HTTP/2 tests passed. PR CI runs the tests.

# Risk
Low; test-only.

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants