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

Use weakrefs for Tape streams #117

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

mhidalgo-bdai
Copy link
Contributor

Precisely what the title says. As it stands, if the user does not explicitly close a Tape (and thus MessageFeed) stream, it will continue buffering writes (or messages). Coupled with the fact that stream buffers grow unbounded by default, you can quickly wind up with a script that slowly but surely eats up your system memory.

This patch ensures that these streams are closed by the garbage collector too.

Signed-off-by: Michel Hidalgo <[email protected]>
@mhidalgo-bdai mhidalgo-bdai merged commit d452350 into main Sep 9, 2024
3 checks passed
@mhidalgo-bdai mhidalgo-bdai deleted the mhidalgo-bdai/weakrefs-to-fed-streams branch September 9, 2024 16:57
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.

2 participants