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: Seth Grover <sethdgrover_at_gmail.com>
Date: Thu, 7 Jan 2010 05:06:43 -0700

Peter Stuge wrote
> There have been several problems with libssh2 data loss and incorrect
> internal state found and fixed since August. The very last such bug
> that has been fixed is not available in a release yet, but can be
> gotten from git.
> _channel_read() returning 0 is not neccessarily an error. I consider
> this to be a bad property of the API, but currently it is what it is.
> _channel_eof() makes the most sense to me, when the channel can
> actually be expected to close remotely.

Thank you, this makes sense to me! I think it's working great for me now.

Thanks again,

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.
Seth Grover
sethdgrover[at]gmail[dot]com
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-07