www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: libssh2_channel_write_ex may incorrectly return EAGAIN

Re: libssh2_channel_write_ex may incorrectly return EAGAIN

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 13 Nov 2010 12:14:59 +0100 (CET)

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
Received on 2010-11-13

the libssh2 team