Re: Python 2.6 ftplib has timeout parameter, but how to detect a timeout

2009-12-30 Thread Giampaolo Rodola'
On 30 Dic, 18:52, MrJean1 wrote: > Brendan, > > The timeout argument of the FTP class (and the connect method) is used > only to establish the connection to FTP sockets.  If the timeout > expires, an error called socket.timeout is raised. > > AFAIK, the timeout argument does not limit FTP transfer

Re: Python 2.6 ftplib has timeout parameter, but how to detect a timeout

2009-12-30 Thread MrJean1
Brendan, The timeout argument of the FTP class (and the connect method) is used only to establish the connection to FTP sockets. If the timeout expires, an error called socket.timeout is raised. AFAIK, the timeout argument does not limit FTP transfers. To impose a time limit on FTP transfers, t

Re: Python 2.6 ftplib has timeout parameter, but how to detect a timeout

2009-12-30 Thread Giampaolo Rodola'
On 14 Dic, 20:08, Brendan wrote: > I was quite happy to see that ftplib in Python 2.6 now has a timeout > parameter. With large file downloads my script would often hang, > presumably from timing out. Now that there is a timeout parameter, how > would I detect when a timeout occurs? The socket ob

Re: Python 2.6 ftplib has timeout parameter, but how to detect a timeout

2009-12-29 Thread Aahz
In article , Brendan wrote: > >I was quite happy to see that ftplib in Python 2.6 now has a timeout >parameter. With large file downloads my script would often hang, >presumably from timing out. Now that there is a timeout parameter, how >would I detect when a timeout occurs? Without looking at

Python 2.6 ftplib has timeout parameter, but how to detect a timeout

2009-12-14 Thread Brendan
I was quite happy to see that ftplib in Python 2.6 now has a timeout parameter. With large file downloads my script would often hang, presumably from timing out. Now that there is a timeout parameter, how would I detect when a timeout occurs? -- http://mail.python.org/mailman/listinfo/python-list