sjstein / tpMonitor

Python monitor script to connect to tpServer
0 stars 0 forks source link

Exception handling during server timeout #8

Closed sjstein closed 4 years ago

sjstein commented 4 years ago

Check into handling user-interrupt (ctrl-c) during server poll. The following trace was noted when the server was not responsive and the user tried to exit:

20200330 16:41:51 [WARN] Timeout waiting for server response. {tpMonitor.py} 20200330 16:41:56 [WARN] Timeout waiting for server response. {tpMonitor.py} 20200330 16:42:01 [WARN] Timeout waiting for server response. {tpMonitor.py} Traceback (most recent call last): File "tpMonitor.py", line 133, in s.connect((server_addr, PORT)) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "tpMonitor.py", line 133, in s.connect((server_addr, PORT)) KeyboardInterrupt

sjstein commented 4 years ago

Marking this as closed - it was addressed while fixing other outstanding issues.