Skip to content

Conversation

@jamiees2
Copy link
Collaborator

@jamiees2 jamiees2 commented Jun 6, 2022

This fixes an issue with the protocol as sent by FluentD. When data is sent in the msgpack str format, the data ends up getting deserialized as UTF8 in @msgpack/msgpack. When this happens, the data is mangled irreversibly, as @msgpack/msgpack expects UTF8 formatted data. This adds a lazy hack to instead just parse as a buffer when the buffer starts with either 0x92 - fixarr of size 2, or 0x1f, compressed buffer.

Fixes #37

Signed-off-by: James Elias Sigurdarson jamiees2@gmail.com

Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com>
@jamiees2 jamiees2 changed the title fix issue with msgpack str Fix msgpack str protocol parsing Jun 6, 2022
@jamiees2 jamiees2 merged commit e8ce81b into master Jun 6, 2022
@jamiees2 jamiees2 deleted the fix-msgpack-str branch June 6, 2022 15:52
github-actions bot added a commit that referenced this pull request Jun 6, 2022
Signed-off-by: James Elias Sigurdarson <jamiees2@gmail.com> e8ce81b
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.

FluentServer not decoding protocol correctly?

1 participant