mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 243 forks source link

close event is never fired when downloading large files from FTP #261

Open gv-beemining opened 4 years ago

gv-beemining commented 4 years ago

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!

fandi-komek commented 3 years ago

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.'