Claudio Freire added the comment:

I can confirm the issue is in urllib's open: it fails to close() the HTTP 
connection, leaving it to the GC to do it.

If addinfourl (and friends) is altered to carry a reference to the HTTP 
connection and close it on close(), the leak is fixed.

I have a patch but it is incomplete (just a POC), it only handles the common 
case I use.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to