Subject: Re: Strange: libssh2_channel_read() returns 0

Re: Strange: libssh2_channel_read() returns 0

From: Jeremy Knope <jerome_at_ambrosiasw.com>
Date: Wed, 29 Apr 2009 18:06:49 -0400

On this note, I still have a problem (only in 1.1) that is similar to
this. libssh2_channel_read() returns 0 on occasion when connected to
a OS X machine (10.4 or 10.5 at least) I'd connect and execute a
couple commands and sometimes I wouldn't get any data for something
like a simple "ls"

I'm not sure if it's related, but thought I'd mention it. I don't
have this problem in 0.13 build we've been using.

--
Jeremy Knope / Software Developer / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.com/
On Apr 29, 2009, at 6:03 PM, Daniel Stenberg wrote:
> On Wed, 29 Apr 2009, double wrote:
>
>> Exec "uptime" on a remote machine (LAN) does not return the  
>> "stdout" output,
>> if "libssh2_channel_read()" is not called fast enough. Instead,
>> "libssh2_channel_read()" returns zero.
>>
>> This issue may be reproduced via the attached c-file. If the  
>> "sleep(3)"
>> right before "libssh2_channel_read()" is removed, everything works  
>> fine.
>
> Ouch. It does indeed look like a bug. I'll try to get some time to  
> look into
> this.
>
> -- 
>
>  / daniel.haxx.se
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code  
> vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> libssh2-devel mailing list
> libssh2-devel_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libssh2-devel
>
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-04-30