http://www.perlmonks.org?node_id=1019672


in reply to Re: FTP: Unable to close datastream
in thread FTP: Unable to close datastream

Thx for the reply.

1) with ftp client works, and this script also works with smaller files but not with big ones (> 1 gb)

2) First of all the downloaded file even with the error is ok. I tried to increase the timeout, but for example if i set 1000 seconds even if the download it's already finished the procedure wait 1000 seconds and then throws the error.

3) If I disable passive mode when I run the script it stops at $ftp->dir() (if i run it on windows 7 it works well even in active mode);

4) It doesn't seems there is an advanced debug/log in filezilla server, but to the server the transfer results finished and successfully (226 Transfer OK)

Thanks, Logan