[issue3066] FD leak in urllib2
Bohdan Vlasyuk
report at bugs.python.org
Thu Jun 12 21:40:28 CEST 2008
Bohdan Vlasyuk <bohdan at google.com> added the comment:
The list is not the problem. The problem is the other reference, from
"<socket._fileobject object at 0xf7d42c34>".
Also note that the workaround (u.fp.recv = None) removes the second
reference.
This is fine (at least in CPython), because the socket is destroyed when the
refcount reaches zero, thus calling the finalizer.
Added file: http://bugs.python.org/file10602/unnamed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3066>
_______________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20080612/6b83fdaf/attachment.txt>
More information about the Python-bugs-list
mailing list