Skip to content

MaxMessageSize actually limits frame size #1356

@lukebakken

Description

@lukebakken

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 rabbitmq/rabbitmq-java-client#1062

Reproduction steps

N/A

Expected behavior

N/A

Additional context

N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions