ssh2-streams
ssh2-streams copied to clipboard
write stream does not write file
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().
Do you have a minimal code example that reproduces this? Also, what server (remote ident shown in the debug logs) is this with?