Subject: Re: writing to channel limited to 2 Mb?

Re: writing to channel limited to 2 Mb?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 10 Aug 2011 19:43:59 +0200 (CEST)

On Wed, 10 Aug 2011, Przemysław Szczygielski wrote:

> I am writing small amounts of data (not more than 4096 bytes) to ssh
> channel, using libssh2_channel_write_ex. Up to 2Mb sent, the function
> returns actual bytes written. But around 2Mb (the boundary is not constant,
> but it fails around 2093051, 2080764, 2083684 or 2092906) it begins
> returning 0 and of course - no data reaches destination.

0 is not an error and is not the end of the stream though. It just meant that
no payload data was sent.

What do you do after you get the 0 return code?

-- 
  / daniel.haxx.se

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-08-10