Skip to content

Message properties size is not accounted for when calculating message size for queue size limit in bytes #785

Open
@swagataroy

Description

@swagataroy

The current implementation for max-length-bytes doesn't account for the bytes in the message headers and only takes the bytes in the message body for consideration. This leaves it vulnerable to denial of service (Rabbit crash or publishers blocked) when a queue is loaded with messages containing dis-proportionally more data in headers than in the body. The queue can grow without limits -- message body size is zero, i.e. all data is in headers.

The Event Exchange plugin also follows the similar logic (putting all data into headers).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions