What does a growing pile of CLOSE_WAIT sockets on a server usually indicate?
$ ss -tan state close-wait | wc -l 4127
- The application is not closing its sockets
- The clients are sending SYN floods
- The network is dropping FIN segments
- The kernel's TIME_WAIT timer is set too long
CLOSE_WAIT means the peer sent FIN and the kernel ACKed it, but the local app never called close(). It is almost always a leak in the application.
Play Networking ▸