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
What is difference between socket and websocket?
Is socket a hardware or software?
Why do we need socket programming?
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
Where is the socket located?
What's better 6pt or 12pt sockets?
Why does it take so long to detect that the peer died?
How many socket connections can a server handle?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
Are unix sockets faster than tcp?
How are unix domain sockets implemented?
What is a socket api?
Why do we need sockets?
What is a socket set used for?
Why sockets are used?