Repository navigation
Avoid initial HTTP/2 stream-limit retry in queue telemetry test - #138128
Merged
Merged
Conversation
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: 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. |
Contributor
|
Tagging subscribers to this area: @karelz, @dotnet/ncl |
ManickaP
approved these changes
Nov 23, 2026
Member
|
/backport to release/11.0 |
Contributor
|
Started backporting to |
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]>
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.
TelemetryTest_Http20.EventSource_ConnectionPoolAtMaxConnections_LogsRequestLeftQueuefailed on Windows and Linux ARM64 with fourRequestHeadersStartevents 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
InitialHttp2MaxConcurrentStreamsto 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).AddStreamretry 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.