Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 0f96d56

Browse files
authored
Merge pull request #289 from rabbitmq/max_msg_size
Reduce max message size to 512MB.
2 parents 9719670 + 76a33a6 commit 0f96d56

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

include/rabbit.hrl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,10 @@
273273
%% Max supported number of priorities for a priority queue.
274274
-define(MAX_SUPPORTED_PRIORITY, 255).
275275

276-
%% Trying to send a term across a cluster larger than 2^31 bytes will
277-
%% cause the VM to exit with "Absurdly large distribution output data
278-
%% buffer". So we limit the max message size to 2^31 - 10^6 bytes (1MB
279-
%% to allow plenty of leeway for the #basic_message{} and #content{}
280-
%% wrapping the message body).
281-
-define(MAX_MSG_SIZE, 2147383648).
276+
%% Max message size is hard limited to 512 MiB.
277+
%% If user configures a greater rabbit.max_message_size,
278+
%% this value is used instead.
279+
-define(MAX_MSG_SIZE, 536870912).
282280

283281
-define(store_proc_name(N), rabbit_misc:store_proc_name(?MODULE, N)).
284282

0 commit comments

Comments
 (0)