mscdex/node-ftp

close event is never fired when downloading large files from FTP

Opened this issue · 1 comments

Hi:

This module works fine with small files but with large files ( > 1 GB) the close event from the stream is never called is there a workaround or a fix to this issue?

         var pgrs = 0;
          stream.on('data', chunk => {
            pgrs += chunk.length;
             console.log(pgrs);
          });
          //never called
          stream.once('close', function() {
          });

Thanks!

hmm, same with me, having this issue, on version 0.3.10
[connection] > 'ABOR'
[connection] PASV socket connected
[connection] < '225 No transfer to ABOR.\r\n'
[parser] < '225 No transfer to ABOR.\r\n'
[parser] Response: code=225, buffer='No transfer to ABOR.'