Author martin.panter
Recipients barry, martin.panter, orsenthil, serhiy.storchaka
Date 2013-12-20.03:03:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
How is it safer to manually set “h.sock._closed”? Playing with the internals of HTTPConnection is one thing, but playing with the internals of the socket object as well does not seem necessary.

Also the ResourceWarning is warning that the socket and connection were closed by the garbage collector at some arbitrary point. I don’t think a new __del__() method is going to help. Sorry to be so negative :)

Related issues:
Issue 18144: FD leak in urllib2 (probably an exact dupe)
Issue 11563: test_urllibnet is triggering a ResourceWarning (bug closed, but real issue was only side-stepped IMO)
Date User Action Args
2013-12-20 03:03:22martin.pantersetrecipients: + martin.panter, barry, orsenthil, serhiy.storchaka
2013-12-20 03:03:22martin.pantersetmessageid: <>
2013-12-20 03:03:22martin.panterlinkissue19524 messages
2013-12-20 03:03:21martin.pantercreate