in reply to Smartly dealing with CLOSE-WAIT states
The "clean" way to go is to make your applications close (or shutdown) their sockets after receiving end-of-file.