CS FundamentalsHardProduct-company placement · SRE interview

A production server shows thousands of TCP sockets stuck in CLOSE_WAIT that never go away. What is the most likely cause?

  1. A. The clients are not sending their final ACK, so the server waits for it
  2. B. The server application received the peers' FIN but never calls close() on those sockets
  3. C. The server closed first and is waiting 2 × MSL before releasing the ports
  4. D. A firewall is dropping the server's SYN-ACKs during connection setup

Correct answer: B. The server application received the peers' FIN but never calls close() on those sockets

CLOSE_WAIT means the peer has sent FIN and the local side has acknowledged it; the socket leaves this state only when the local application calls close(). Waiting 2 × MSL is TIME_WAIT on the side that closed first, and a missing final ACK leaves the closer in LAST_ACK.

More Computer Networks questions

Exams that ask this topic