Subject: Re: libssh2_channel_read returns no data from a libssh2_channel_exec after an sftp session

Re: libssh2_channel_read returns no data from a libssh2_channel_exec after an sftp session

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 9 Jun 2009 10:18:47 +0200 (CEST)

On Tue, 9 Jun 2009, Phillip Wu wrote:

> I call libssh2_channel_exec with the 'date' command and a subsequent call
>
> to libssh2_channel_read returns the output of the 'date' command as
> expected.
>
> However if I add a sftp session prior to the libssh2_channel_exec with the
> 'date' command then the
>
> libssh2_channel_read returns no data.

Can you provide a full sample that repeats this problem?

> Is this related to problem 2785173 - "channel_read returns
> LIBSSH2_ERROR_EAGAIN, no data on socket"

Perhaps.

> which seems to have been closed. When a bug is closed when is the fix
> available?

If it gets closed with "fixed", the fix is present in the git repo meant to be
included in the upcoming release.

I would recommend you trying the latest git version/daily snapshot to see if
the bug is still there.

-- 
  / daniel.haxx.se
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-06-09