Skip to content

Don't send partial messages when the utf8 encoder overflows#224

Merged
vickenty merged 1 commit into
masterfrom
vickenty/rewind
Jul 4, 2023
Merged

Don't send partial messages when the utf8 encoder overflows#224
vickenty merged 1 commit into
masterfrom
vickenty/rewind

Conversation

@vickenty

@vickenty vickenty commented Jul 4, 2023

Copy link
Copy Markdown
Contributor

CharsetEncoder will encode messages up to full capacity of the destination buffer, and leave the data there even if the destination had insufficient capacity to encode the full payload. This can cause incomplete payloads to be sent to the agent, even though we threw an exception.

CharsetEncoder will encode messages up to full capacity of the
destination buffer, and leave the data there even if the destination
had insufficient capacity to encode the full payload. This can cause
incomplete payloads to be sent to the agent, even though we threw an
exception.
@vickenty
vickenty merged commit ae0b6e2 into master Jul 4, 2023
@vickenty
vickenty deleted the vickenty/rewind branch July 4, 2023 15:50
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