tcp networking question (CLOSE_WAIT)
Martin A. Brown
martin at linux-ip.net
Thu Feb 25 13:17:27 EST 2016
>I'm new to python networking. I am waiting TCP server/client app by
>using python built-in SocketServer. My problem is if client get
>killed, then the tcp port will never get released, in CLOSE_WAIT
I did not thoroughly review your code (other than to see that you
are not using SO_REUSEADDR). This is the most likely problem.
Suggestion:
man 7 socket
Look for SO_REUSEADDR. Then, apply what you have learned to your
code.
-Martin
--
Martin A. Brown
http://linux-ip.net/
More information about the Python-list
mailing list