Skip to content

[release/11.0] Avoid initial HTTP/2 stream-limit retry in queue telemetry test - #138214

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

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

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

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.

)

<!-- -->


`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.

Co-authored-by: Copilot App <[email protected]>
@lewing lewing added test-bug Problem in test source code (most likely) area-System.Net.Http labels Nov 24, 2026
@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.

@lewing lewing added the Servicing-approved Approved for servicing release label Nov 24, 2026
@lewing
lewing enabled auto-merge (squash) November 24, 2026 18:23
@lewing lewing self-assigned this Nov 24, 2026
@lewing

lewing commented Nov 24, 2026

Copy link
Copy Markdown
Member

/ba-g Known EC, Android and iOS failures are unrelated to the HTTP telemetry test.

@lewing
lewing merged commit 4e03439 into release/11.0 Nov 24, 2026
100 of 108 checks passed
@lewing
lewing deleted the backport/pr-138128-to-release/11.0 branch November 24, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net.Http Servicing-approved Approved for servicing release test-bug Problem in test source code (most likely)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants