Re: Buffer Size Command Hanging - WeOnlyDo Discussion board

Re: Buffer Size Command Hanging (General questions)

by mmorton, Wednesday, July 08, 2009, 13:35 (5406 days ago) @ wodSupport

I am running the code purely in a module within a Service.

No event is fired as I am not using a windows form and managing using withevents.

For instance if I run the following code.

[code]
sshConnection.Blocking = False
sshConnection.Send( show * /identifier & vbCrLf)
While sshConnection.DataReady
Dim line_data As String = sshConnection.ReceiveLine()
If line_data.Contains( [ ) And line_data.Contains( ] ) Then passwd.Add(line_data.Replace( , ))
End While
[/code]

This returns no data as the server doesnt send the data in time and the command obviously doesnt wait. If I initially step into this code and then run it, it returns around 2000 records because it doesnt wait for the server to send the next.


The way to solve this was to use Execute and waitfor UAF> but I cant do this because it doesnt work with large amounts of data.

So I can only really gather that the tool cannot cope with large amounts of data becuase of how it works.


Complete thread: