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 (3022 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>

Re: Getting disconnected automatically when large

by woddrazen, Wednesday, July 07, 2010, 20:09 (3022 days ago) @ Pradeep Nair

Hi Pradeep,


I try to duplicate this problem but it works for me. I manage to receive 32768 inside BufferCount and it still works.

What happens if you try to duplicate this problem using our samples? Does it work there?

Also please make sure that you are using latest 2.4.3.131 version of wodTelnetDLX. You can check version inside Version Property.

Let us know how it goes.


Regards,
Drazen

Re: Getting disconnected automatically when large

by Pradeep Nair, Wednesday, July 07, 2010, 21:49 (3022 days ago) @ woddrazen

No help, downloaded latest version, used your code.. same result.. below is code and results.
[code]
Option Explicit
Dim Host As String

Private Sub Form_Load()
wodTelnetDLX1.PrintText This sample will connect using telnet protocol to server of your choice. & vbCrLf
wodTelnetDLX1.PrintText There's really no special code needed to handle something like this... & vbCrLf
wodTelnetDLX1.PrintText Please enter hostname:
wodTelnetDLX1.TerminalEmulation = 2
Host =
End Sub

Private Sub wodTelnetDLX1_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String)
If ErrorCode = 0 Then
wodTelnetDLX1.PrintText CONNECTED & vbCrLf
Else
wodTelnetDLX1.PrintText ERROR: & ErrorText
End If
End Sub

Private Sub wodTelnetDLX1_Disconnected()
wodTelnetDLX1.PrintText vbCrLf + DISCONNECTED
End Sub

Private Sub wodTelnetDLX1_KeyPress(KeyAscii As Integer)
Dim i As Integer

If wodTelnetDLX1.State = Disconnected Then
wodTelnetDLX1.PrintText Chr$(KeyAscii)
Host = Host + Chr$(KeyAscii)
i = InStr(1, Host, Chr$(13))
If i > 0 Then
wodTelnetDLX1.PrintText vbCrLf & Trying to connect to & Left$(Host, i - 1) & ... & vbCrLf
wodTelnetDLX1.Login = root
wodTelnetDLX1.Password = rooter
wodTelnetDLX1.Connect 127.0.0.1 , 4953, 4
End If

KeyAscii = 0 'make wodTelnetDLX ignore this char internally
' it would do it anyway, since we're not connected
End If

End Sub


[/code]

Last few lines before disconnecting.
[code]
'hostname': None,
'hypervisor': 'VIRTUALBOX30',
'importancefactor': 5,
'isbackup': False,
DISCONNECTED
[/code]

Re: Getting disconnected automatically when large

by woddrazen, Thursday, July 08, 2010, 00:15 (3022 days ago) @ Pradeep Nair

Pradeep,


How can we duplicate your problem?

Which server (type/vendor/name) you are using? Which command you execute to produce this problem?


Drazen

Re: Getting disconnected automatically when large

by Pradeep Nair, Thursday, July 08, 2010, 09:14 (3022 days ago) @ woddrazen

We are executing a program which returns some data from a Ubuntu machine. This is used along with wodSSH using port forwarding. Thus i would not be able to give the access. If you can give me a timing where we can chat ill be availble that time. I have checked at same time same command using putty. it was working fine.

Re: Getting disconnected automatically when large

by woddrazen, Thursday, July 08, 2010, 10:03 (3022 days ago) @ Pradeep Nair

Pradeep,


In order to deal with your problem we will need to duplicate it somehow on our side.

Is there any chance you can record your session using Record Method? So we can play it on our side and try to duplicate it.

More help for Record Method you can find here:
http://www.weonlydo.com/TelnetDLX/Help/WODTELNETDLXLIB~wodTelnetDLX~Record.html

You can send record output to:

techsupport@weonlydo.com


Drazen

Re: Getting disconnected automatically when large

by Pradeep Nair, Thursday, July 08, 2010, 10:36 (3021 days ago) @ woddrazen

Sent the record file.