Answer Posted / chaitanya
This socket option tells the kernel that even if this port is busy (in the TIME_WAIT state), go ahead and reuse it anyway. If it is busy, but with another state, you will still get an address already in use error. It is useful if your server has been shut down, and then restarted right away while sockets are still active on its port. You should be aware that if any unexpected data comes in, it may confuse your server, but while this is possible, it is not likely.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is socket a hardware or software?
Why does the sockets buffer fill up sooner than expected?
What is a deep well socket?
What's the difference between impact sockets and regular sockets?
What is sae socket?
How can I write a multi-homed server?
How many socket connections can a server handle?
What is difference between socket and websocket?
What is a socket set used for?
What is socket address with example?
What is the difference between read() and recv()?
Why do I get EPROTO from read()?
How can I tell when a socket is closed on the other end?
What is a socket api?
Why do we need sockets?