TCPClient close connection problems

TCPClient TIME_WAIT state may remain active after closing the connection, will affect the next use of the same port when packets "each socket address (protocol / network address / port) is normally permitted" exception, TIME_WAIT state holding about 30S.

Solution:

1, the server closes the corresponding TCP connection.

Guess you like

Origin www.cnblogs.com/fanu/p/12449973.html