• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sockets go to time_wait state, why ???  RSS feed

 
A Burg
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i�m writing a Client/Server application, which are both running on my local machine.
The Client connects to the Server and then both start a thread to do the communication.
At the end of both threads i close the sockets.
But then the socket go into the time_wait state(given by the netstat-programm). Why is this so?
This is so even when the whole java-process is over.
By the way, if i don�t close the socket and the java-process is over then there are no sockets left (netstat).
Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!