On Sat, 13 Nov 2010, Peter Stuge wrote:

I have a different explanation to the problem and that is quite simply that_libssh2_channel_write() returns EAGAIN instead of a short return when the entire buffer isn't sent in the first case, which can lead to a "loss" of data returned.

That's what I thought the problem was above. But maybe it is there in a different place. It fits with the error description.

Tommy's example code is an EXCELLENT helper to track this down. I found one bug that reduced the problem but I've still not fixed it completely...

--

 / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to