node-ftp
node-ftp copied to clipboard
Change to emit `end` and `close` immediately at EOF during download
Signed-off-by: Qi Liang [email protected]
Change to emit end and close at EOF immediately during download, without waiting for 226 or 250 for RETR. This could close the stream quickly, instead of hanging for 1 or 2 minutes on Node.JS v10 and v12.
It's to fix #228 actually.
I have also run into a similar issue on Node 11 and 12, and can confirm this PR fixes it. Thanks @std4lqi!
See https://github.com/mscdex/node-ftp/issues/277