Answer Posted / chaitanya
You get this when the address is already in use. (Oh, you figured that much out?) The most common reason for this is that you have stopped your server, and then re-started it right away. The sockets that were used by the first incarnation of the server are still active. This is further explained in ``2.7 Please explain the TIME_WAIT state.'', and ``2.5 How do I properly close a socket?''.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Are unix sockets faster than tcp?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
Can a socket have multiple ports?
What is difference between socket and websocket?
How to find other end of unix socket connection?
How is a socket created?
What is a socket file?
What's the difference between impact sockets and regular sockets?
What is active unix domain sockets?
What is af_inet in socket?
Why does it take so long to detect that the peer died?
What is socket address?
What is a socket api?
How can I set the timeout for the connect() system call?
Why do I get EPROTO from read()?