Try reading and writing in blocks of 4K.  Do this to EOF of source file.
________________________________
From: Rafael Hovhannisyan <[email protected]>
Sent: Tuesday, August 23, 2016 7:54:02 AM
To: [email protected]
Subject: Short sftp packet!

Hello everybody.

I have a problem, which I can't understand by myself. When I am trying to write 
long files(bigger than 255 kb) via sftp_write function, I am getting an error 
message(Short sftp packet!); but when file was created/updated on remote 
server, it was with zero bytes.

Code: https://github.com/psrafo/justup/blob/master/src/justup.c#L330

Reply via email to