jsftp icon indicating copy to clipboard operation
jsftp copied to clipboard

not handling a 426 error on download

Open zshaw-brightcove opened this issue 8 years ago • 1 comments

I'm downloading large files via https://github.com/sergi/jsftp/blob/master/lib/jsftp.js#L449 with the option to get a stream not have jsftp do the download for me.

Some FTP servers cancel the download with a 426 Transfer aborted. I have two problems:

  1. I cannot see how to handle this error in my client code, any suggestions? There are no errors on the socket.
  2. I am concerned about a race condition in the command queue. parseResonse handles the 426 calling the nextCommand's callback, however this callback does not belong to the 426.

zshaw-brightcove avatar Feb 16 '17 01:02 zshaw-brightcove

Hi, can you share the code you are (were) using?

sergi avatar Jun 08 '17 10:06 sergi