Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails. Original patch by Martin Panter.