Python socket doesn't close connection properly
The error information:
[Errno 98] Address already in use
The reasion:
http://www.unixguide.net/network/socketfaq/4.5.shtml
The resolution:
http://*.com/questions/2765152/what-is-the-correct-way-to-close-a-socket-in-python-2-6
客户端|
|windows|
|eclipse
IDE中断,服务器端捕捉到的异常信息:
DOS终端Ctrl+C中断程序,服务端为捕捉到异常,导致无法检测客户端程序是否还存活,无法终止线程:
补充:
关于服务端关闭套接字函数:
sever.shutdown(XXX)
sever.close()
http://outofmemory.cn/code-snippet/4007/python-socket-shutdown-types