This month's Index
Subject: RE: Questions about libssh2_sftp_read()
RE: Questions about libssh2_sftp_read()
From: Nitin Deokate <ndeokate_at_qualys.com>
Date: Tue, 24 Jun 2014 08:37:21 +0530
I have used this test case
I have modified the *char* mem; to *char* mem;
I am trying to read the 1gb file. First time libssh2_sftp_read()
And even in subsequent read calls too.
But last response from Daniel says that I should get bigger chunks in
Is not happening. Do I need to change something to get me bigger chunks.
*From:* Nitin Deokate [mailto:ndeokate_at_qualys.com]
Thanks for the reply.
On Sun, Jun 15, 2014 at 2:34 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
On Sat, 14 Jun 2014, Nitin Deokate wrote:
1. I have an application, where I use libssh2_sftp_read(), and I pass
What I expect is, data of same bytes, but all I get is 2000Bytes.
No, that is probably all you get in the first read call. That's quite a
What could help me to get as equal to the buffer size I passed and not 2000
If you have less latency to the server you may get more, but the first call
2. Is it any significant reason for selecting value for
#define MAX_SFTP_READ_SIZE 2000
Why it canâ€™t have more bytes than that?
It can, just bump it. But you will not get the amount you ask for at once,
Has anybody faced this scenario before, please revert as early as possible.
I don't even understand your scenario. We have users downloading insane
The 2K number is simply the "block size". libssh2 sends read MANY requests
-- / daniel.haxx.se