-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mcap-record: Fix race condition when adding messages (#598)
### Public-Facing Changes mcap-record: Fix race condition when adding messages ### Description Does not directly call `writer.addMessage` in the websocket message handler but instead pushes it to a queue. This makes sure that we do not call `writer.addMessage` concurrently which could happen due to a certain `addMessage` taking longer when a chunk is ready to be compressed & written. This PR also allows to set the message queue size and to opt out of chunk compression. Fixes #592 Resolves FG-5775
- Loading branch information
Showing
3 changed files
with
57 additions
and
15 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
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