ftplib error- Large file
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Jun 6 17:48:06 EDT 2007
En Wed, 06 Jun 2007 13:39:57 -0300, <half.italian at gmail.com> escribió:
> I'm using ftplib to transfer large files to remote sites. The process
> seems to work perfectly with small files, but when the file gets to
> large ~20GB I begin getting errors that sometimes seem to be non-
> fatal, and other times the transfer does not complete. I've debugged
> the hell out of the code, and can't figure out what is going on..is it
> the remote site? Packet loss?
>
>
> IOError: [Errno 104] Connection reset by peer
You always have to consider a connection failure - it's just more likely
to happen on a big file.
The REST ftp command is used to restart the transfer from a certain offset.
--
Gabriel Genellina
More information about the Python-list
mailing list