Subject: Re: Questions about libssh2_sftp_read()

Re: Questions about libssh2_sftp_read()

From: Nitin Deokate <ndeokate_at_qualys.com>
Date: Fri, 27 Jun 2014 11:02:10 +0530

Nevertheless, I tried with localhost as well as another machine from same
network(no heavy IO,memory operations on both machine. so guessing, it
would be low latency) . still I get 2000 bytes

Thanks
Nitin

On Thu, Jun 26, 2014 at 9:34 AM, Nitin Deokate <ndeokate_at_qualys.com> wrote:

> Any idea how to get those numbers?
>
> -Nitin
>
>
>
> *> I tried with 500000 bytes to almost 10MB as buffer size, what I get is
> 2000 *
> *> bytes in each case. You could also try, if you are developer for the
> same *
> *> feature. *
>
> I implemented that feature. I've tried it a lot. I don't know why you
> don't
> get more. What's the latency/RTT to the server from your client?
>
> --
>
> / daniel.haxx.se
>
>
>
>
>
> *From:* Nitin Deokate [mailto:ndeokate_at_qualys.com]
> *Sent:* Wednesday, June 25, 2014 8:42 AM
> *To:* libssh2 development
> *Subject:* Questions about libssh2_sftp_read()
>
>
>
> I tried with 500000 bytes to almost 10MB as buffer size, what I get is
> 2000 bytes in each case.
> You could also try, if you are developer for the same feature.
>
> Thanks
> Nitin
>
> On Wed, Jun 25, 2014 at 4:43 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> >
> > On Tue, 24 Jun 2014, Nitin Deokate wrote:
> >
> >> I have modified the *char* mem[1024]; to *char* mem[2500];
> >
> > But what if you make it 100000 or 500000 bytes big instead?
> >
> >> But last response from Daniel says that I should get bigger chunks in
> subsequent call, which is not happening. Do I need to change something to
> >> get me bigger chunks.
> >
> > I think 2500 is just too small buffer to get much data with.
> > --
> >
> > / daniel.haxx.se
> > _______________________________________________
> > libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-06-27