WeOnlyDo.wodSSHCom.1: The current connection has t - WeOnlyDo Discussion board

WeOnlyDo.wodSSHCom.1: The current connection has t (General questions)

by jimm3rs, Wednesday, May 01, 2013, 04:16 (4014 days ago)

Hi there

Hope you have a good time there.

Problem: using WodSSH ActiveX and WodSSH.NET results in timeout exceptions when running a command over 259 characters in length against Solaris 5.10 SPARC ssh daemon.
Is this a known issue and if so, what can be done to resolve it?

Here are more technical details:

[code]$ uname -a
SunOS sunny12 5.10 s10_72 sun4u sparc SUNW,Sun-Fire-V210[/code]

user is regular user account with [code]/bin/sh[/code] shell.

Code to reproduce the problem:

[code]
Option Explicit

Sub DoIt(n)

Dim objSSH, objKey
Set objSSH = CreateObject( WeOnlyDo.wodSSHCom )
objSSH.Blocking = True
objSSH.StripANSI = True
objSSH.Timeout = 62
objSSH.DebugFile = logsdebug_ & CStr(n) & .log
objSSH.Login = myaccount
objSSH.Password = mypassword

Call objSSH.Connect( mybox , 22, 4)
Call objSSH.Execute( echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X12345678;echo ABCD; & vbCrLf, ABCD , 15)
Set objSSH = Nothing

End Sub

Dim i
For i = 1 To 100
Call DoIt(i)
WScript.Echo(i)
Next
[/code]

It fails on very first iteration with:

[code]WeOnlyDo.wodSSHCom.1: The current connection has timeout.[/code]

I did the same thing with WodSSH.NET in C# app it throws essentially the same timeout exception.

Here is debug log content:

[code]
*** OnConnect received, err = 0
echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X12345678;echo ABCD;
Last login: Tue Apr 30 23:11:07 2013 from x.x.x.x

Sun Microsystems Inc. SunOS 5.10 s10_72 December 2004
$ echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X123456789X123456789X123456789X123456789;echo X123456789X12345678;echo ABC....
[/code]

Dots at the end (after last ABC) are [code]0x07[/code] bytes.

If I remove a single character from the command it passes successfully.


Complete thread: