Commit 711232ff authored by Tres Seaver's avatar Tres Seaver Committed by GitHub

Merge pull request #108 from zopefoundation/107-message_received-return_after_deode_error

Return early after decode error.
parents f9e4442d a17b80c5
...@@ -90,6 +90,7 @@ class ServerProtocol(base.Protocol): ...@@ -90,6 +90,7 @@ class ServerProtocol(base.Protocol):
except Exception: except Exception:
logger.exception("Can't deserialize message") logger.exception("Can't deserialize message")
self.close() self.close()
return
if message_id == -1: if message_id == -1:
return # keep-alive return # keep-alive
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment