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 giampaolo.rodola
Recipients Sworddragon, giampaolo.rodola
Date 2012-01-05.10:28:13
SpamBayes Score 8.524415e-09
Marked as misclassified No
Message-id <1325759294.48.0.829856889395.issue13714@psf.upfronthosting.co.za>
In-reply-to
Content
Since you say the connection hangs I think you can set a timeout:

>>> ftp = ftplib.FTP(..., timeout=30)

That is applied to both control and data connection (and hence storbinary). This way you should get a socket.timeout exception after 30 seconds.
History
Date User Action Args
2012-01-05 10:28:14giampaolo.rodolasetrecipients: + giampaolo.rodola, Sworddragon
2012-01-05 10:28:14giampaolo.rodolasetmessageid: <1325759294.48.0.829856889395.issue13714@psf.upfronthosting.co.za>
2012-01-05 10:28:13giampaolo.rodolalinkissue13714 messages
2012-01-05 10:28:13giampaolo.rodolacreate