Login  
Search All Forums
Dart Home | PowerTCP Telnet for .NET | Custom Development Reply | PowerTCP Telnet for .NET Topics | Forums   
AuthorForum: PowerTCP Telnet for .NET
Topic: very slow connect (up to 10 mins for log in)
Susanna Wiedemann

From: Buchs, Switzerland
Posts: 2
Member Since: 06/17/08
posted June 17, 2008 3:48 AM

Dear all

We use your DLL for connecting via Telnet to 4 Unixboxes. Since the beginning, we face the problem, that for 2 Boxes it's working very fast, but for the other 2 it's very slow.

The problem is, that when we start the connection (directly with login) it takes up to 10 mins, until the software logged in. After that it works in the normal speed. Creating a manual connect to the Unix Box is in a normal speed (cmd - telnetsession)

As the code is for all the same, and the line speed is ok it seems to be nothing of those.

We tried on several machines (PCs, Servers with Vista or XP). But everywhere the same slow connect for the 2 Unix Boxes.

Only after installing the Visual Studio 2008 the connect on this PC was fast for all 4 Unix Boxes.

Maybe you have any other ideas what we could try or where the problem could occur.

Thanks a lot for your help

Cheers

Susanna
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted June 18, 2008 12:28 PM

It's possible that it may have something to do with the automatic option negotiation. You could try removing all of the options from the ClientOptions and ServerOptions collections and then slowly add them back in one by one to see where the slow down might be occurring. That aside you said that installing Visual Studio 2008 on the machine in question solved the problem. I find that strange and really have no explanation for it.
Susanna Wiedemann

From: Buchs, Switzerland
Posts: 2
Member Since: 06/17/08
posted June 19, 2008 8:24 AM

Hi Jason

We do not use any options within the code, just a login and then running the code within the unix box.

Can you please provide me with some examples? We're using VB.NET

Thank you very much

Susanna

btw:
I found another strange thing. When I change the code for one box to do first a connect, then the login, all 4 Boxes are slow.
Jason Farrar (Admin)

From: Oneida, NY USA
Posts: 223
Member Since: 07/24/07

Extra Support Options
Custom Application Development

posted July 7, 2008 5:12 PM

Sorry for the delayed response. You can call Telnet.ClientOptions.Clear() and Telnet.ServerOptions.Clear() to clear the options attributes. A couple of questions, what is the ReceiveTimeout property set to?

I ask because when using the Login method, if the Telnet server is responding with something other then the expected Login prompt ("login:") then a timeout will occur. After a timeout occurs the Telnet control will assume that a login request was sent and send the user name. This will occur with the password prompt as well.

It would be helpful if you could send us a trace of the communications using the trace method of the control.

You could also try using the connect method as follows:

Try
  ' Connect to a server
  Telnet1.Connect("myserver")

  ' Read until "login" is found (change to whatever prompt your server uses).
  Telnet1.WaitFor("login:")

  ' Login received, send username
  Telnet1.Send("myuser" + vbCRLf)

  ' Now wait until "Password:" is found
  Telnet1.WaitFor("Password:")

  ' Send password
  Telnet1.Send("mypass" + vbCrLf);

  ' Wait for command prompt
  Telnet1.WaitFor("$ ")

  ' Logged in.
}
Catch ex As Exception
  Debug.WriteLine(ex.Message)
End Try
Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX