Skip to content

fix: Empty sync message causes error in client MessageReceiver#174

Merged
hanspagel merged 1 commit intomainfrom
fix/empty-sync-message
Aug 20, 2021
Merged

fix: Empty sync message causes error in client MessageReceiver#174
hanspagel merged 1 commit intomainfrom
fix/empty-sync-message

Conversation

@tommoor
Copy link
Contributor

@tommoor tommoor commented Aug 20, 2021

This check for message length existed previously and was lost here:

https://github.com/ueberdosis/hocuspocus/pull/171/files#diff-e4f9bafbc6bc998e63c12b8e290a9b22d7cf83e21816be901c442135526ab259L179-L181

Resulting in sync messages with no content being sent to the client, breaking assumptions of valid sync messages and causing the caught error.

@tommoor tommoor requested a review from hanspagel August 20, 2021 20:00
@hanspagel
Copy link
Contributor

Welcome back length check! Sorry, I’ve lost you on my way.

@hanspagel hanspagel merged commit f9dca69 into main Aug 20, 2021
@hanspagel hanspagel deleted the fix/empty-sync-message branch October 5, 2021 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants