After a connection is closed the socket will be in TIME_WAIT state. Can someone please explain me in detail what exactly happens? I went through stevens "2.7 - Please explain the TIME_WAIT state" article and I couldn't understand it. What all I know is - It is normal for a connection to be in TIME_WAIT state after it has been closed. I want to know why it is required and what happens in that period when it is finally released by the server....