ssh2-streams icon indicating copy to clipboard operation
ssh2-streams copied to clipboard

write stream does not write file

Open spearmootz opened this issue 5 years ago • 1 comments

So i do SFTP uploads using fastput and at some point it stops and closes the sftp connection.

now i added debugging and added just a bit of logging.

writting file //start writting file DEBUG[SFTP]: Outgoing: Writing OPEN DEBUG: Outgoing: Writing CHANNEL_DATA (0) // its supposed to rename the file at this point but doesnt because it does not finish writting it. writting file //moves on, possibly because i time out the original writting promise and move on DEBUG[SFTP]: Outgoing: Writing OPEN DEBUG: Outgoing: Writing CHANNEL_DATA (0) DEBUG: Outgoing: Writing CHANNEL_CLOSE (0) sftp ended // this is done automatically, not because i call sftp.end().

spearmootz avatar Jul 16 '19 17:07 spearmootz

Do you have a minimal code example that reproduces this? Also, what server (remote ident shown in the debug logs) is this with?

mscdex avatar Jul 16 '19 18:07 mscdex