[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: large fileransfers with libssh sftp_write
[Thread Prev] | [Thread Next]
- Subject: Re: large fileransfers with libssh sftp_write
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 18 Aug 2015 09:15:37 +0200
- To: libssh@xxxxxxxxxx
On Tuesday 18 August 2015 06:10:00 Gigin Jose wrote: > Hi, > > I am trying to do large file transfers with sftp_write() of libssh. > > For file size near to and greater than 300 KB, I get the following error: > > [2015/08/18 11:27:27.830293, 1] channel_write_common: channel_write wrote > 32758 bytes [2015/08/18 11:27:27.833793, 1] channel_write_common: > channel_write wrote 32758 bytes [2015/08/18 11:27:27.836293, 1] > channel_write_common: channel_write wrote 30306 bytes [2015/08/18 > 11:27:27.839293, 2] ssh_channel_read_timeout: Read (4) buffered : 0 bytes. > Window: 1279983 [2015/08/18 11:27:27.840793, 1] sftp_packet_read: Short > sftp packet! The bytes written is -1 > [2015/08/18 11:27:27.845293, 1] channel_write_common: Remote channel is > closed > > The byte written is obtained from the following code segment: > nwritten = sftp_write(file, buffer, bytes_read); > printf("The bytes written is %d\n",nwritten); > > Is there any limit for the ssh transfer using sftp_write() ? I need to > transfer large files using sftp. How is this possible ? I think the following commit should fix your problem: https://git.libssh.org/projects/libssh.git/commit/?h=v0-7&id=30d4581be50583e6a38726a310ac491cc78f5e49 I will try to release libssh 0.7.2 this week. -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.org asn@xxxxxxxxxxxxxx
large fileransfers with libssh sftp_write | "Gigin Jose (RBEI/EIA1)" <Gigin.Jose@xxxxxxxxxxxx> |