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 martin.panter
Recipients amaury.forgeotdarc, dstanek, kristjan.jonsson, martin.panter, orsenthil, pitrou, serhiy.storchaka
Date 2013-12-28.02:47:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388198857.28.0.544495035302.issue7464@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-12-28 02:47:37martin.pantersetrecipients: + martin.panter, amaury.forgeotdarc, orsenthil, pitrou, kristjan.jonsson, dstanek, serhiy.storchaka
2013-12-28 02:47:37martin.pantersetmessageid: <1388198857.28.0.544495035302.issue7464@psf.upfronthosting.co.za>
2013-12-28 02:47:37martin.panterlinkissue7464 messages
2013-12-28 02:47:37martin.pantercreate