Message150663
| Author |
giampaolo.rodola |
| Recipients |
deleted250130, 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:14 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, deleted250130 |
| 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 |
|