[New-bugs-announce] [issue21032] Socket leak if HTTPConnection.getresponse() fails

Martin Panter report at bugs.python.org
Sun Mar 23 05:05:47 CET 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue21032>
_______________________________________


More information about the New-bugs-announce mailing list