Message214001
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. |
|
Date |
User |
Action |
Args |
2014-03-18 18:23:13 | Claudio.Freire | set | recipients:
+ Claudio.Freire, pitrou, javawizard, martin.panter, serhiy.storchaka |
2014-03-18 18:23:13 | Claudio.Freire | set | messageid: <1395166993.61.0.39565904973.issue18144@psf.upfronthosting.co.za> |
2014-03-18 18:23:13 | Claudio.Freire | link | issue18144 messages |
2014-03-18 18:23:13 | Claudio.Freire | create | |
|