This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

A Burg
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!