Repository navigation
[release/11.0] [HTTP] Use smaller Uri size in 32bit process - #138147
Merged
lewing merged 2 commits intoNov 25, 2026
Merged
Conversation
Backport of dotnet#137992, commit a209566. Test-only: bound large URI/header inputs in 32-bit processes while preserving existing WinHttp and Android limits. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
lewing
temporarily deployed
to
copilot-pat-pool
November 23, 2026 18:37 — with
GitHub Actions
Inactive
|
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. |
lewing
temporarily deployed
to
copilot-pat-pool
November 23, 2026 18:38 — with
GitHub Actions
Inactive
Contributor
|
Tagging subscribers to this area: @karelz, @dotnet/ncl |
This was referenced Nov 24, 2026
ManickaP
approved these changes
Nov 24, 2026
lewing
enabled auto-merge (squash)
November 24, 2026 20:08
Member
Author
|
/ba-g mono minijit failure is unrelated |
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
29ccd413b6a52112d08e7acc20fc07f07f9c9bc3↓ No compilation, functional test run, or backport CI run.
↓ Failure not reproduced locally.
↓ No x86 execution of this backport.
Fixes Issue Related to #137274 and #137889 (already addressed on main).
main PR #137992
Description
Test-only backport of a209566.
In
LargeUriAndHeaders_Works, use 100,000-character inputs for 32-bit processes instead of the 10,000,000-character fallback.Preserve WinHttp's 65,000-character limit, Android's 100,000-character limit, the 64-bit fallback, and all test assertions.
Only
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cschanges; no product code changes.Customer Impact
No shipped behavior changes. Without this fix, oversized test inputs can exhaust the 32-bit address space and produce unrelated CI failures.
Regression
Test reliability fix. The reports establish x86 OOM failures, but do not establish when the problem was introduced.
Testing
git diff --checkandgit diff HEAD^ HEAD --check: passed.System.Net.Http.Functional.TestsandSystem.Net.Http.WinHttpHandler.Functional.Tests.LargeUriAndHeaders_Worksrun remains unverified. PR CI is intended to provide compilation and functional verification; no backport CI has been inspected.Risk
Low risk: exact one-line upstream test-only backport using an existing platform helper. WinHttp and Android limits retain precedence. All assertions remain enabled. Tradeoff: non-Android, non-WinHttp 32-bit runs exercise a smaller input; 64-bit runs retain the existing large input.
Package authoring no longer needed in .NET 9
IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.
Note
This PR description and backport were prepared with GitHub Copilot.