X-Git-Url: https://git.ralfj.de/saartuer.git/blobdiff_plain/d084286e81b121106a0a165e3c151762635466e0..0644bed139c320b03b54f1e5a4fecadc96fa67c8:/tysock.py diff --git a/tysock.py b/tysock.py index 11b5183..676f573 100644 --- a/tysock.py +++ b/tysock.py @@ -71,8 +71,11 @@ class TySocket(): # _answer will be called, and it will close the connection else: waynesend(conn, 'Command not found') - conn.close() except KeyboardInterrupt: raise # forward Ctrl-C to the outside + except socket.timeout: + # it's okay + logger.info("TySocket: Connection timed out") except Exception as e: logger.critical("TySocket: Something went wrong: %s" % str(e)) + conn.close()