drcoms / jlu-drcom-client

JLU Drcom Client
GNU Affero General Public License v3.0
142 stars 2 forks source link

refactor, add fault tolerance #5

Open newnius opened 7 years ago

newnius commented 7 years ago

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...