Ticket #109 (closed defect)
|Reported by:||kakaxiao||Owned by:||bagder|
when I use libssh2_channel_exec() to execute a command like "ls -l", I get nothing from libssh2_channel_exec(), but I can get data when I execute "ls -al".
I find the reason is that when I execute "ls -l" , the channel stil has data in buffer, but the remote-close flag in channel is true, so channel_read() read nothing but just return.
but when I execute "ls -al", I can get data, so I think may be it because "ls -al " transports more data than "ls -l".
bug fix: I comment the code "!channel->remote.close &&" in while loop and I can get data whatever command I use.