You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Leak in asyncio.selector_events._SelectorSocketTransport #87745
In my experience, the gc doesn't always break all the cycles.
Personally I like to check for cycles in my code and clean them up, just in case. Sometimes I stumble over cycles in code I use. Specifically about this one, it's been such a long time I do not remember... but if I found it, it's because something didn't get cleaned up :)
Activity
begnac commentedon Mar 21, 2021
Hello,
Even after close()ing, asyncio.selector_events._SelectorSocketTransport keeps a reference to itself via self._read_ready_cb.
should probably add
Cheers !
Itaï.
kumaraditya303 commentedon Sep 24, 2022
The gc would break the cycle anyways, is this an issue in practice? @begnac
begnac commentedon Sep 26, 2022
In my experience, the gc doesn't always break all the cycles.
Personally I like to check for cycles in my code and clean them up, just in case. Sometimes I stumble over cycles in code I use. Specifically about this one, it's been such a long time I do not remember... but if I found it, it's because something didn't get cleaned up :)
gvanrossum commentedon Sep 26, 2022
I think it's a reasonable suggestion and the fix should be simple.
kumaraditya303 commentedon Dec 20, 2022
Duplicate of #100348