From: Adrian V. <ad...@ve...> - 2006-04-10 16:14:50
|
I have the same problem. If the client calls TTCPBlockSocket.CloseSocket the socket has the status TIME_WAIT for several minutes. Yes - I call SetLinger for this connection. Funny thing is, if the client get's aborted via CTRL-C the socket is closed immediately. Any idea Lukas Gebauer schrieb: >> I have a TCP Server and TCP Client that I have created using synapse. >> >> When the client connects to the server, all works well and I can >> transfer data from the client to the server. However, when I >> disconnect the client, it does not seem like the socket connection is >> actually terminated in the server? When running the `netstat´ command >> in linux all the socket have a status of `TIME_WAIT´ and eventually >> the operating system will time the socket out. >> > > Did you have enabled linger on server side? > Try to set: > > yoursocket.setLinger(true, 10); > > > > |