Giampaolo Rodola' <g.rod...@gmail.com> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13714> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com