TCP connection lost problems in c#

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-05-01T00:14:54Z Indexed on 2010/05/01 0:17 UTC
Read the original article Hit count: 622

Filed under:
|

Hi:

In my application, I have a server listening on a port on localhost for client connection. Then I have clients running and establishes connection with the server. I used tcpListner in c# for the server and the clients were written in perl using Inet function.

The connection between clients and server were established without a problem and a message from client is received by the server. However, after about 3 to 4 seconds, the connection is lost. I use netstat -a to see if the status of the connection is still "established". The result is "Close_wait" after I use netstat command on DOS.

How can I debug this problem? Which side is causing the lost of connection?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about socket