The base version of newclient.py can not handle network error such as ethernet cable loose. Also, the old version can not be killed with Crtl+C.
I refactored the codes to solve these problems and make the code easy reading.
The process of keep_alive is rather confusing...
The base version of newclient.py can not handle network error such as ethernet cable loose. Also, the old version can not be killed with Crtl+C. I refactored the codes to solve these problems and make the code easy reading. The process of keep_alive is rather confusing...