Message150663
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. |
|
Date |
User |
Action |
Args |
2012-01-05 10:28:14 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, Sworddragon |
2012-01-05 10:28:14 | giampaolo.rodola | set | messageid: <1325759294.48.0.829856889395.issue13714@psf.upfronthosting.co.za> |
2012-01-05 10:28:13 | giampaolo.rodola | link | issue13714 messages |
2012-01-05 10:28:13 | giampaolo.rodola | create | |
|