Allowed an unreferenced Socket to be closed automatically#17
Open
fidlej wants to merge 1 commit intotmc:masterfrom
Open
Allowed an unreferenced Socket to be closed automatically#17fidlej wants to merge 1 commit intotmc:masterfrom
fidlej wants to merge 1 commit intotmc:masterfrom
Conversation
Weakref is used for that.
Owner
|
Do you mind creating a test case or some sort of example to display this issue? |
Author
|
Thanks for the interest. The issue can be reproduced when testing gevent-zeromq: The "set/getsockopt roundtrip" test will be blocked forever. It is waiting for an unreferenced socket to be closed. |
|
Could this be causing what looks like a memory leak? I'm baffled as to why my application is hogging the amount of RAM it is. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The event loop is holding a reference to the Socket.
I used weakref to release the Socket, when nobody else is referencing to it.