Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OutputCaching middleware memory leak #61800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
narcis-ro opened this issue May 5, 2025 · 2 comments
Open
1 task done

OutputCaching middleware memory leak #61800

narcis-ro opened this issue May 5, 2025 · 2 comments
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares feature-output-caching

Comments

@narcis-ro
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

OutputCacheEntry is renting an ArrayPool that never gets returned to the pool, in method: CopyHeadersFrom

P.S the dispose is empty and is never released in any other place

Expected Behavior

ArrayPool rented should be returned

Steps To Reproduce

Normal usage of Output caching, behavior happens if there are headers to cache

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@ghost ghost added the area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares label May 5, 2025
@narcis-ro
Copy link
Author

Could also be related: #55890

@BrennanConroy
Copy link
Member

@mgravell

Could also be related: #55890

Don't know what that issue is about, but can't be related as the PinnedBlockMemoryPool and ArrayPool are completely different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares feature-output-caching
Projects
None yet
Development

No branches or pull requests

3 participants