mscdex / node-ftp

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

write NOOP command during long-running transfer #151

Closed jdonnell closed 8 years ago

jdonnell commented 8 years ago

https://github.com/mscdex/node-ftp/issues/78

mscdex commented 8 years ago

The problem with doing this is that the behavior is undefined. The server could simply delay the response to the NOOP until after the transfer is finished, it could abort the current transfer, it could ignore it completely, or it could do something entirely different. This is one of many reasons why FTP in general sucks :-). Everyone really should be only using SFTP these days ....

jdonnell commented 8 years ago

Ok, thanks. The NOOP solution worked with the FTP server my application was talking to, but I get what you are saying about it not being part of the spec. Thanks for the pointer to SFTP.