Skip to content

Fix memory leak due to missing compressor close in the LengthPrependerAndCompressor #3786

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

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

BoomEaro
Copy link
Contributor

This pull request fixes a missing compressor close that should happen when LengthPrependerAndCompressor handler is removed from pipeline when a player disconnects from the proxy.
And also removes unnecessary "MAX_SUPPORTED_VARINT_LENGTH_LEN < 5" check in the "varintSize" method.

This currently causes a memory leak every time the player disconnects from the proxy.

@BoomEaro BoomEaro changed the title Fix memory leak due to missing compressor close Fix memory leak due to missing compressor close in the LengthPrependerAndCompressor Feb 15, 2025
@md-5 md-5 merged commit 591e187 into SpigotMC:master Feb 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants