rabbitmq-dotnet-client
rabbitmq-dotnet-client copied to clipboard
MaxMessageSize actually limits frame size
Describe the bug
PR #1220's intent is to prevent large allocations due to bad incoming data, or large messages. The fix checks that the individual frame's size does not exceed the maximum message size, but it does not take into account the case where a large message is split into multiple frames. When combined, the message body may exceed the max message size.
Related to https://github.com/rabbitmq/rabbitmq-java-client/issues/1062
Reproduction steps
N/A
Expected behavior
N/A
Additional context
N/A