Open
Description
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).