Getting disconnected automatically when large text - WeOnlyDo Discussion board

Getting disconnected automatically when large text (wodSSH / wodSSH.NET)

by Pradeep Nair, Wednesday, July 07, 2010, 17:51 (5253 days ago)

Im facing a issue with OCX version. When a large text is returned (ByteCount = 26984 is last Received) it shows half data and then disconnects automatically.

Below is code i did. Am i missing something or doing something wrong, Kindly reply asap.

owtn.TerminalEmulation = 2;
owtn.AutoSize = true;
owtn.BackColor = &H000000 ;
owtn.ForeColor = &HFFFFFF ;
owtn.Columns = 120;
owtn.Rows = 30;
owtn.Enabled = true;
owtn.ShowCursor = true;

function doConnect () {
if (owtn.State == 0) {
owtn.Clear();
owtn.Protocol = 4;
owtn.Login = document.getElementById( tnetuser ).value;
owtn.Password = document.getElementById( tnetpass ).value;
owtn.Hostname = lip;
owtn.Port = sstlp;
owtn.BorderVisible = false;
owtn.AutoSize = true;
owtn.KeepAlives = 20;
owtn.Timeout = 0;
owtn.Connect ();
}
}
function dodisConnect () {
owtn.Clear();
owtn.Disconnect ();
}

<script for= owtn event= statechange() language= JavaScript >
showtnstatus(owtn.StateText(owtn.State));
</script>
<script for= owtn event= Connected(ErrorCode, ErrorText) language= JavaScript >
document.getElementById( tdconstr ).style.display = ;
document.getElementById( tconstr ).style.display = none ;
</script>
<script for= owtn event= Disconnected() language= JavaScript >
alert(owtn.ExitSignal);
document.getElementById( tdconstr ).style.display = none ;
document.getElementById( tconstr ).style.display = ;
</script>
<script for= owtn event= Received(ByteCount, Handled) language= JavaScript >
alert(ByteCount);
Handled = true;
</script>
<script for= owtn event= PromptReceived() language= JavaScript >
showtnstatus( Prompt Recd );
</script>


Complete thread: