You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite configuring ConnectionFactory.MaxMessageSize, this limit is not applied and instead the .Net client uses the default limit set in ConnectionFactory.DefaultMaxMessageSize (=134217728).
This does not happen in 6.x versions. The reason is because when the ConnectionFactory creates AmqpTcpEndpoint, it uses a constructor which does not take in the parameter maxMessageSize hence it defaults it to ConnectionFactory.DefaultMaxMessageSize. In 6.x, the default value was 0, i.e. unlimited.
Reproduction steps
Configure ConnectionFactory.DefaultMaxMessageSize to 500Mb
Send messages of 500Mb to a queue
Consume messages from that queue
The consumer fails with every single message because all of them are greater than 134217728
...
Expected behavior
All messages should be consumed because they are equal to the configured MaxMessageSize.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Despite configuring ConnectionFactory.MaxMessageSize, this limit is not applied and instead the .Net client uses the default limit set in ConnectionFactory.DefaultMaxMessageSize (=134217728).
This does not happen in 6.x versions. The reason is because when the ConnectionFactory creates
AmqpTcpEndpoint
, it uses a constructor which does not take in the parametermaxMessageSize
hence it defaults it to ConnectionFactory.DefaultMaxMessageSize. In 6.x, the default value was 0, i.e. unlimited.Reproduction steps
...
Expected behavior
All messages should be consumed because they are equal to the configured
MaxMessageSize
.Additional context
No response
The text was updated successfully, but these errors were encountered: