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?
- A. The clients are not sending their final ACK, so the server waits for it
- B. The server application received the peers' FIN but never calls close() on those sockets
- C. The server closed first and is waiting 2 × MSL before releasing the ports
- 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
- A TCP server listens on port 80. Three clients connect and the server accept()s all of them. How many TCP sockets does the server process…
- Karn's algorithm is applied to TCP's RTT estimation. Which statement is correct?
- The data 1001101110 is protected by a CRC with generator x⁴ + x + 1. What check bits are appended to it?
- A block code must correct every pattern of up to 2 bit errors and, at the same time, detect (without miscorrecting) every pattern of up to…
- Data is sent as a block of bits with an even-parity bit for every row and every column (two-dimensional parity). How many of these…
- An HDLC sender bit-stuffs the payload 0111111111111101111101111110 (a 0 after every five consecutive 1s, counting restarting after each…