FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[release/8.0-staging] Fix PipeStream leak on Windows when pipe is disposed with a pending operation by github-actions[bot] · Pull Request #116189 · dotnet/runtime · GitHub

Repository navigation

[release/8.0-staging] Fix PipeStream leak on Windows when pipe is disposed with a pending operation - #116189

Merged
stephentoub merged 2 commits into
release/8.0-stagingfrom
backport/pr-115453-to-release/8.0-staging
Jun 8, 2025
Merged

stephentoub merged 2 commits into
release/8.0-stagingfrom
backport/pr-115453-to-release/8.0-staging

Conversation

github-actions Bot commented Jun 1, 2025 •
edited by stephentoub
Loading

Copy link
Copy Markdown
Contributor

Backport of #115453 to release/8.0-staging

/cc @stephentoub

Customer Impact

  • Customer reported
  • Found internally

A small leak of native handles occurs when a PipeStream is disposed of while an asynchronous read or write is pending on the stream. A customer noticed this in the context of using HttpClient with pipes as the transport, such that after long periods of uptime and with connections that would idle out after long periods of time, their memory usage would slowly increase.

Regression

  • Yes
  • No

.NET 6

Testing

Manually validated, in addition to normal testing. Also found a couple of additional places the same pattern occurred and fix those locations.

Risk

Low. The fix is localized to disposing of a resource in a situation it wasn't being cleaned up.

dotnet deleted a comment from heliodoro8242 Jun 1, 2025
stephentoub added the Servicing-consider Issue for next servicing release review label Jun 2, 2025
stephentoub added this to the 8.0.x milestone Jun 2, 2025

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

adamsitnik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Copy link
Copy Markdown
Member

cc: @jeffhandley, @artl93

rbhanda modified the milestones: 8.0.x, 8.0.18 Jun 3, 2025
rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jun 3, 2025
stephentoub merged commit 607a335 into release/8.0-staging Jun 8, 2025
stephentoub deleted the backport/pr-115453-to-release/8.0-staging branch June 8, 2025 22:42
github-actions Bot locked and limited conversation to collaborators Jul 9, 2025
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.IO Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL