Skip to content

fix: Add size validation to named and unnamed message sending [Up Port] #3049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

NoelStephensUnity
Copy link
Collaborator

Up-port of #3043
Size validation added to the 4 entry points for Named/Unnamed message functions, where there is context to have more descriptive error messages as oppose to the generic serialisation messages you'll get when deeper in the call stack.

A few more details are also added to other places for better errors in generic message sending, like the TryBeginWrite check where the batch message header might push the message over the limit but you'd get a stange "Attempted to write without first calling TryBeginWrite()" later on.

MTTB-378

fix: #2363

Changelog

  • Added message size validation to named and unnamed message sending functions for better error messages.

Testing and Documentation

  • Tests added

Adding the fixes from #3043
Adding the tests from #3043
Adding changelog entry
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review September 6, 2024 22:54
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner September 6, 2024 22:54
Check for CustomMessageManager existing before invoking.
@NoelStephensUnity NoelStephensUnity merged commit 8e62d9e into develop-2.0.0 Sep 7, 2024
24 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/add-size-validation-to-namedmessage-up-port branch September 7, 2024 15:21
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.

1 participant