This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients angus, barry, daniel.ugra, davide.rizzo, eric.araujo, ezio.melotti, georg.brandl, nadeem.vawda, nneonneo, orsenthil, santoso.wijaya, terry.reedy, vstinner
Date 2011-07-25.00:04:34
SpamBayes Score 9.1326074e-05
Marked as misclassified No
Message-id <1311552275.23.0.416739205161.issue12576@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-07-25 00:04:35orsenthilsetrecipients: + orsenthil, barry, georg.brandl, terry.reedy, vstinner, nneonneo, nadeem.vawda, ezio.melotti, eric.araujo, daniel.ugra, santoso.wijaya, davide.rizzo, angus
2011-07-25 00:04:35orsenthilsetmessageid: <1311552275.23.0.416739205161.issue12576@psf.upfronthosting.co.za>
2011-07-25 00:04:34orsenthillinkissue12576 messages
2011-07-25 00:04:34orsenthilcreate