Message214001
| 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. |
|