[Python-3000] socket GC worries
janssen at parc.com
Wed Nov 14 04:05:59 CET 2007
> > But if we remove SocketCloser, there's no need for the cyclic GC to be
> > involved. If the count (of the number of outstanding SocketIO
> > instances pointing to this socket.socket) is just moved into the
> > socket.socket object itself, there's no cyclic reference, and normal
> > refcounting should work just fine. I don't even think a __del__ method
> > on socket.socket is necessary.
> Here's a patch, for whenever you get back to this. You can
> ignore/remove the first hunk, which is about SSL. I've tried all the
> tests, and they work. I've looked for leaks in test_socket and
> test_ssl, no leaks.
I've posted this patch as issue 1439.
More information about the Python-3000