This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Claudio.Freire
Recipients Claudio.Freire, javawizard, martin.panter, pitrou, serhiy.storchaka
Date 2014-03-18.18:23:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395166993.61.0.39565904973.issue18144@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-03-18 18:23:13Claudio.Freiresetrecipients: + Claudio.Freire, pitrou, javawizard, martin.panter, serhiy.storchaka
2014-03-18 18:23:13Claudio.Freiresetmessageid: <1395166993.61.0.39565904973.issue18144@psf.upfronthosting.co.za>
2014-03-18 18:23:13Claudio.Freirelinkissue18144 messages
2014-03-18 18:23:13Claudio.Freirecreate