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 vstinner
Recipients orsenthil, vstinner
Date 2010-04-19.23:23:04
SpamBayes Score 2.398609e-06
Marked as misclassified No
Message-id <1271719386.16.0.90692709375.issue8460@psf.upfronthosting.co.za>
In-reply-to
Content
> The last line references, buf. It wont be available if a
> socket.timeout had happened. So, it can simply be moved to 
> the line below buf = f.read(). Attaching the patch with 
> these changes.

Good catch :-)

> Question: Were you able to simulate a timeout at kernel.org 
> site to test this? If yes, how?

I used a firewall rule. On Linux, you can try: iptables -I OUTPUT DROP to drop all output packets (and then iptables -F to remove all rules). It's not reliable, but the test does sometimes fail :-)
History
Date User Action Args
2010-04-19 23:23:06vstinnersetrecipients: + vstinner, orsenthil
2010-04-19 23:23:06vstinnersetmessageid: <1271719386.16.0.90692709375.issue8460@psf.upfronthosting.co.za>
2010-04-19 23:23:04vstinnerlinkissue8460 messages
2010-04-19 23:23:04vstinnercreate