Buffer Size Command Hanging - WeOnlyDo Discussion board

Buffer Size Command Hanging (wodSSH / wodSSH.NET)

by mmorton, Tuesday, July 07, 2009, 14:32 (5619 days ago)

Hi,

I am issuing a command that returns 10000+ rows that I need to retrieve and parse.

If I connect to the server drectly and run the following command:

[code]
show * /identifier
[/code]

The commands completes in around 10 seconds.

When issuing the same command using the following code the code just hangs and a timeout occurs.

[code]
passwd = Split(sshConnection.Execute( show * /identifier & vbCrLf, UAF> , 300), vbCrLf)
[/code]

I have also tried the following command and it returns results but ends on or around 4000 rows.

[code]
sshConnection.Send( show * /identifier & vbCrLf)
While sshConnection.DataReady
passwd.Add(sshConnection.Recieve)
End While
[/code]

Any ideas on what could be causing this?
I can only assume that there is some kind of buffer limit and that is why the first command times out.

Thanks in advance
Mike


Complete thread: