Archive Index
This month's Index
|
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: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 7 Jan 2010 19:46:28 +0100 (CET)
On Thu, 7 Jan 2010, Peter Stuge wrote:
>> In my reading, the man page is quite clear that returning 0 is
Let me quote what the libssh2_channel_read_ex man page says:
Note that a return value of zero (0) can in fact be a legitimate value
That is about as explicit you can get in my book.
> But even if it was more clear, the behavior is quite counter-intuitive.
My man page for read() says the following on RETURN VALUE:
Upon successful completion, read() and pread() shall return a non-
... there's no special case for 0 there.
But yes, SSL_read() special cases 0 but that (again) only shows the need for
You do surprise me though, as I was under the impression you wanted 0 to be a
-- / daniel.haxx.se
_______________________________________________
|