-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: throw upon invalid payload format
An invalid packet was previously parsed as an ERROR packet, which was then ignored because it didn't contain any 'nsp' (namespace) field. This behavior was wrong because: - it means the other side is sending invalid payloads, so the connection must be closed right away - ERROR packets are meant for namespace authentication failures Parsing an invalid payload will now throw an error, which must be caught by the caller. Closes #86
- Loading branch information
1 parent
b23576a
commit c327acb
Showing
2 changed files
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters