Archive Index
This month's Index
|
Subject: [libssh2] Question about Reading Remote File using SFTP Subsystem
[libssh2] Question about Reading Remote File using SFTP Subsystem
From: Fujiwara, Daisuke <DFujiwara_at_syncsort.com>
Date: Thu, 25 Oct 2007 19:22:25 -0400
Hello,
I have downloaded libssh2 version 0.18 and compiled one of the sample
Using this sample executable, I wanted to read a 17 megabyte remote file
I also changed the buffer size from 1024 bytes to 256k bytes in line 224
So following change is made to the buffer size.
From
char mem[1024]; //1k buffer
To
char mem[262144]; // 256k buffer
Upon the completion of the first call to "rc =
the "rc" variable is assigned "-1" indicating that the reading failed.
Using the libssh2_session_last_error call to retrieve the last error, I
It seems like this buffer limit is imposed around 40k bytes.
Anything below this limit, the remote file can be read using this
Does anyone know why this happens?
Thank you.
_____________________________________________________________________________
ATTENTION:
The information contained in this message (including any files transmitted
-------------------------------------------------------------------------
_______________________________________________
|