Archive Index
This month's Index
|
Subject: Re: intermittent channel read problems
Re: intermittent channel read problems
From: Jeremy Knope <jerome_at_ambrosiasw.com>
Date: Tue, 14 Apr 2009 16:24:55 -0400
Thanks for the tips, I'll have to try that. I'm on OS X so I suppose
-- Jeremy Knope / Software Developer / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.com/ On Apr 14, 2009, at 4:12 PM, Peter Stuge wrote: > Jeremy Knope wrote: >> very so often a command I execute returns 0 bytes of data and a >> status of 0, but then I can execute the command again and I might >> get results on the 2nd try. > > Tricky. > > I would suggest to attach strace to the sshd process, and increase > debugging as far as possible without making the error run and hide. > > >> In my sample app, every time I execute a command, a channel via >> libssh2_channel_open_session() is opened and command is executed >> via libssh2_channel_exec(). I'm also running everything in >> blocking mode. > > I think this should work just fine. But it would be nice to look at > that strace output. > > >> The only time it seems to work 100% reliably is if I turn logging >> on my local sshd to DEBUG3. > > Hah! Lots of fun. > > > //Peter > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > libssh2-devel mailing list > libssh2-devel_at_lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libssh2-devel > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ libssh2-devel mailing list libssh2-devel_at_lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-develReceived on 2009-04-14 |