| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: Perfromance problem with Tcp.BeginConnect() |
| mikeskells From: London, United Kingdom Posts: 12 Member Since: 04/01/04 |
posted May 4, 2004 2:11 PM HI , I have a problem that appears to be related to an unwanted DNS resolve. I have an application deployed on a PC, making connections to 127.0.0.1. The time taken from a BeginConnect to the callback is approx 4 seconds when the pc is connected to the network, and < .2 seconds when not connected I presume that the component is performing a dns resolve for the address ( the signature is a string, for the ip address), which would explain the timings Is my assumption correct ? How can I convince the component to avoid the DNS resolve. Can you provide a more strongly typed interface with IPHostEntry, IPEndPoint or IPAddress |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 4, 2004 2:20 PM We do a System.Net.Dns.GetHostByName on the remote host. I would think this would take the same amount of time as an nslookup. I'm not sure why this would take 4 secs for you. It happens instantly when I try it. Do you have 127.0.0.l defined in your hosts file? |
| mikeskells From: London, United Kingdom Posts: 12 Member Since: 04/01/04 |
posted May 4, 2004 5:19 PM I believe that it takes the time due the the lookup occuring over the modem I have localhost translating to 127.0.0.1 in the host file The 4 seconds timing only occurs when the modem is connect to the net, so the GetHostByName() will cause a lookup wont it? I cant understand why it should take the time for a lookup of localhost though. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 4, 2004 5:25 PM I don't either. I would think GetHostByName would look in Hosts file first. |
| mikeskells From: London, United Kingdom Posts: 12 Member Since: 04/01/04 |
posted May 4, 2004 7:30 PM after some more trace code the problem appears to be in the lag between data being send and recieved, sorry for the bad lead. I have some test code that show a lag of 13 seconds after the EndSend is received on the client and the data arriving on the server as an event. The configuration that I have is 2 processes running (both console applications) running on 127.0.0.1. Both connections and data seem to be delayed Please give me an email address that I can post the test code to, to see if you can reproduce the problem |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 4, 2004 8:17 PM support@dart.com |
| mikeskells From: London, United Kingdom Posts: 12 Member Since: 04/01/04 |
posted May 5, 2004 3:51 AM test code sent |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|