New submission from Martin Panter: Here is a regression test and patch to close the socket reader when a HTTP server causes getresponse() to fail, for instance if the server times out and drops the connection without sending any response. Without the patch the socket will only be closed by the garbage collector at some arbitrary point.
---------- components: Library (Lib) files: test.patch keywords: patch messages: 214546 nosy: vadmium priority: normal severity: normal status: open title: Socket leak if HTTPConnection.getresponse() fails type: resource usage versions: Python 3.4 Added file: http://bugs.python.org/file34579/test.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21032> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com