[issue7464] circular reference in HTTPResponse by urllib2

Martin Panter report at bugs.python.org
Sat Dec 28 03:47:37 CET 2013


Martin Panter added the comment:

Sounds like urlopen() is relying on garbage collection to close the socket and connection. Maybe it would be better to explicitly close the socket, even if you do eliminate all the garbage reference cycles.

My test code for Issue 19524 might be useful here. It verifies close() has been called on the HTTP socket.

----------
nosy: +vadmium

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7464>
_______________________________________


More information about the Python-bugs-list mailing list