ftplib retrlines timeout

Jennifer owenzhang.chicago at gmail.com
Tue Dec 15 17:17:58 EST 2009


I am writing a program that has a requirement for  a timeout of
retrlines after the connection established. I just wonder if timeout
of ftplib.FTP('xxxx.xxx.com',username,password,timeout) will work for
retrlines method after the connection established. Or
socket.setdefaulttimeout will work in this case. Please let me know.

What exception will be throwed if ftp.retrlines timed out.

Many Thanks!

- Jennifer



More information about the Python-list mailing list