Subject: Re: not getting all the data with libssh2_channel_exec and libssh2_channel_read

Re: not getting all the data with libssh2_channel_exec and libssh2_channel_read

From: Peter Stuge <peter_at_stuge.se>
Date: Thu, 7 Jan 2010 19:05:41 +0100

Daniel Stenberg wrote:
>> _channel_read() returning 0 is not neccessarily an error.
>
> In my reading, the man page is quite clear that returning 0 is
> indeed not an error.

Only implicitly. But even if it was more clear, the behavior is quite
counter-intuitive. (Compare read() or even SSL_read() where 0 is a
special case.)

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-07