-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Leak in asyncio.selector_events._SelectorSocketTransport #87745
Comments
Hello, Even after close()ing, asyncio.selector_events._SelectorSocketTransport keeps a reference to itself via self._read_ready_cb. should probably add def close(self):
super().close()
self._read_ready_cb = None Cheers ! |
The gc would break the cycle anyways, is this an issue in practice? @begnac |
In my experience, the gc doesn't always break all the cycles. |
I think it's a reasonable suggestion and the fix should be simple. |
Duplicate of #100348 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: