Skip to content
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

Addressing ByteBuf memory leak in upgrade handler #30781

Open
wants to merge 3 commits into
base: netty-transport-http
Choose a base branch
from

Conversation

mrsaldana
Copy link
Member

This PR addresses a memory leak detected by Netty's ResourceLeakDetector. The issue originated in the setToBuffer() method, where a ByteBuf was passed to ByteBufUtil.getBytes() without ensuring a corresponding release() call.

During testing, this was found to cause accumulation over a short period of time and resulted in memory pressure from the leaked buffers.

@mrsaldana mrsaldana self-assigned this Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needed for beta
Development

Successfully merging this pull request may close these issues.

1 participant