Skip to content

Allowed an unreferenced Socket to be closed automatically#17

Open
fidlej wants to merge 1 commit intotmc:masterfrom
fidlej:weakcallback
Open

Allowed an unreferenced Socket to be closed automatically#17
fidlej wants to merge 1 commit intotmc:masterfrom
fidlej:weakcallback

Conversation

@fidlej
Copy link
Copy Markdown

@fidlej fidlej commented Aug 3, 2011

The event loop is holding a reference to the Socket.
I used weakref to release the Socket, when nobody else is referencing to it.

@tmc
Copy link
Copy Markdown
Owner

tmc commented Oct 11, 2011

Do you mind creating a test case or some sort of example to display this issue?

@fidlej
Copy link
Copy Markdown
Author

fidlej commented Oct 11, 2011

Thanks for the interest. The issue can be reproduced when testing gevent-zeromq:
python setup.py test

The "set/getsockopt roundtrip" test will be blocked forever. It is waiting for an unreferenced socket to be closed.
I have libevent-1.4.13.

@gtaylor
Copy link
Copy Markdown

gtaylor commented Apr 23, 2012

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.

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