server: handle IOError gracefully
This commit is contained in:
@@ -55,6 +55,8 @@ def handle_connection(conn, handler):
|
||||
msg = util.read_frame(conn)
|
||||
reply = handler.handle(msg=msg)
|
||||
util.send(conn, reply)
|
||||
except IOError as e:
|
||||
log.error('I/O error: %s', e)
|
||||
except EOFError:
|
||||
log.debug('goodbye agent')
|
||||
except Exception as e: # pylint: disable=broad-except
|
||||
|
||||
Reference in New Issue
Block a user