Senthil Kumaran <sent...@uthcode.com> added the comment:

I propose the attached patch as fix to this issue. All it does is, moves the 
code of getting http response to the finally block of the http request. It 
closes the sockets if the getting the response fails for some reason, otherwise 
it proceeds normally.  

Please provide your critique if any, otherwise, I shall go ahead with checking 
this in.

----------
keywords: +patch
Added file: http://bugs.python.org/file22746/issue12576.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12576>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to