$ ./guess_the_languageNetworking
Networking · hard · #277

What does a growing pile of CLOSE_WAIT sockets on a server usually indicate?

$ ss -tan state close-wait | wc -l
4127
  1. The application is not closing its sockets
  2. The clients are sending SYN floods
  3. The network is dropping FIN segments
  4. 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 ▸