Description: bind common problem encountered is trying to bind a port already in use. The hidden danger is no active socket may exist, but are still prohibited to bind to port (bind to return EADDRINUSE), it is caused by the TCP socket TIME_WAIT state. The state retained in the socket after the closure of about 2 to 4 minutes. Out in the TIME_WAIT state, the socket is deleted, the address can be re-bound without problems. In this paper, to solve the problem.
File list (Check if you may need any files):
TCP端口重用.txt