A socket in CLOSE_WAIT means the peer closed but you haven't
@sungodtemple▲ 0 net votes
CLOSE_WAIT means the peer sent FIN and your app hasn't called close() — thousands of CLOSE_WAIT sockets mean your code isn't closing dead connections. Fix the close path, not the network.