http://www.perlmonks.org?node_id=990110


in reply to TCP Socket and TIME_WAIT

TIME_WAIT is an integral part of the TCP protocol state, and the socket will always enter TIME_WAIT for a period in the the host which first closed the socket.

See the TCP state diagram

Dave.

Replies are listed 'Best First'.
Re^2: TCP Socket and TIME_WAIT
by Deus Ex (Scribe) on Aug 28, 2012 at 06:36 UTC

    Sure, I know, but it wasn't clear to me how to achieve an active close, instead a passive one for which, on that system, the socket would last on TIME_WAIT for some time.

    Thanks though!