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

Break Circular References #43 #44

Merged
merged 2 commits into from
Sep 13, 2020
Merged

Break Circular References #43 #44

merged 2 commits into from
Sep 13, 2020

Conversation

fried
Copy link
Contributor

@fried fried commented Sep 13, 2020

Solve memory leaks by breaking Circular References on writer.close() and connection lost.
This solves the issue #43

Still working on a test

Solve memory leaks by breaking Circular References on writer.close() and connection lost.
@jquast
Copy link
Owner

jquast commented Sep 13, 2020

Thanks for your hard work, looks great, no need for any tests, I wrote this so long ago, I'm not even sure why I set result as self there, I must have been thinking of something clever at the time, sorry for the trouble! I'll merge and release soon

@fried
Copy link
Contributor Author

fried commented Sep 13, 2020

yeah you use self for tests. without them all the tests fail :(

@fried
Copy link
Contributor Author

fried commented Sep 13, 2020

Ok I modified a test to ensure the writer and protocol object go out of scope.

@jquast jquast merged commit 5d138a5 into jquast:master Sep 13, 2020
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