Skip to content

Reading an unreasonably large payloadSize should throw an exception. #1217

@lukebakken

Description

@lukebakken

See the following FIXME:

int payloadSize = NetworkOrderDeserializer.ReadInt32(frameHeaderSpan.Slice(2, 4)); // FIXME - throw exn on unreasonable value

The default for this value will be the default max message size for RabbitMQ, 128MiB:

https://github.com/rabbitmq/rabbitmq-server/blob/46c400afcae92bf74ce52d3ff3b53f9836297047/deps/rabbit/Makefile#L118-L119

...and it will be configurable.

Related to #1213

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions