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
Originally posted by dank100 August 30, 2023
From 6.4.0 and forward There is now a limit on the message size, as you rightfully explain in your changelogs:
"This release adds the ability to specify a maximum message size when receiving data. The default values are:
RabbitMQ .NET client 7.0.0 and beyond: 128MiB
RabbitMQ .NET client 6.4.0 up to 7.0.0: no limit by default"
However, when I specify the cf.MaxMessageSize = 536870912 as in your example. I'm still limited by the max size of the message, i.e. 134217728.
If I downgrade to 6.3.1, I'm not limited by the MessageSize, on the very same cluster and exchange.
I'm not sure this is any bug, but I cannot seem to figure it out.
An observation I've made in ConnectionFactory.cs is that on your main branch we have.
public const uint DefaultMaxMessageSize = 134217728;
However, on, tag 6.5.0 we have.
public const uint DefaultMaxMessageSize = 0;
In your docs you specify that 0 means "unlimited".
With me using 6.5.0, I would expect the MaxMessageSize being 0, whether I specify it or not. However, as explained I'm limited by the MaxMessageSize of 134217728.
Is this anything you've heard of before, and are you able to pinpoint me in the right direction?
Dan
The text was updated successfully, but these errors were encountered:
I just merged #1566, and realized that, as it stands, there is no way for the user to specify a max message size greater than 128MiB. Frankly, I consider this a feature but others may think otherwise.
@lukebakken in the Java client and RabbitMQ itself, you can bump the limit but not disable it entirely. Furthermore, in RabbitMQ itself there is a hard limit of 512 MiB which I find reasonable. Even 200-300 MiB large messages really belong to a blob store.
I think it makes sense for this client to simply follow suit.
Discussed in #1379
Originally posted by dank100 August 30, 2023
From 6.4.0 and forward There is now a limit on the message size, as you rightfully explain in your changelogs:
"This release adds the ability to specify a maximum message size when receiving data. The default values are:
RabbitMQ .NET client 7.0.0 and beyond: 128MiB
RabbitMQ .NET client 6.4.0 up to 7.0.0: no limit by default"
However, when I specify the cf.MaxMessageSize = 536870912 as in your example. I'm still limited by the max size of the message, i.e. 134217728.
If I downgrade to 6.3.1, I'm not limited by the MessageSize, on the very same cluster and exchange.
I'm not sure this is any bug, but I cannot seem to figure it out.
An observation I've made in ConnectionFactory.cs is that on your main branch we have.
public const uint DefaultMaxMessageSize = 134217728;
However, on, tag 6.5.0 we have.
public const uint DefaultMaxMessageSize = 0;
In your docs you specify that 0 means "unlimited".
With me using 6.5.0, I would expect the MaxMessageSize being 0, whether I specify it or not. However, as explained I'm limited by the MaxMessageSize of 134217728.
Is this anything you've heard of before, and are you able to pinpoint me in the right direction?
The text was updated successfully, but these errors were encountered: