CS FundamentalsHardGATE CS · Product company CS fundamentals
A server restarts and its bind() to port 8080 fails with 'address already in use' because old connections are in TIME_WAIT. Which socket option is designed for this?
- A. SO_REUSEADDR
- B. TCP_NODELAY
- C. SO_KEEPALIVE
- D. SO_LINGER with a timeout of 120 s
Correct answer: A. SO_REUSEADDR
TIME_WAIT entries keep the 4-tuples of old connections; new connections use different client ports, so binding the listener again is safe. TCP_NODELAY disables Nagle, SO_KEEPALIVE probes idle peers, and SO_LINGER controls close behaviour.
More Computer Networks questions
- A Selective Repeat receiver uses a window of 8 frames. How much buffer space (in frames) must it reserve, and why?
- What is the code rate of the (15, 11) Hamming code, and what fraction of transmitted bits is redundancy?
- How many of the following statements about Ethernet switches versus routers are correct? 1. A switch forwards using MAC addresses; a…
- An organisation advertises 198.18.0.0/22 to its ISP, but internally uses only 198.18.0.0/23. Traffic for 198.18.3.10 arrives. With no…
- A 4-port router has 3 interfaces on 10.1.1.0/24, 10.1.2.0/24 and 10.1.3.0/24. Which static route best summarises them for an upstream…
- A TCP receiver's advertised window is 0 and the sender's persist timer fires. What does the sender transmit?