[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Short sftp packet!


Try reading and writing in blocks of 4K.  Do this to EOF of source file.
________________________________
From: Rafael Hovhannisyan <psrafo@xxxxxxxxx>
Sent: Tuesday, August 23, 2016 7:54:02 AM
To: libssh@xxxxxxxxxx
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

Follow-Ups:
Re: Short sftp packet!Andreas Schneider <asn@xxxxxxxxxxxxxx>
References:
Short sftp packet!Rafael Hovhannisyan <psrafo@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org