Skip to content

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
@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.

2 participants