summaryrefslogtreecommitdiff
path: root/include/rabbit.hrl
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2014-01-21 17:55:37 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2014-01-21 17:55:37 +0000
commit7bced52c8cffa8b46cf383aad02dfbc0d99bdaaa (patch)
treee7815c7f1e5f04be5e7653e58089c955b9033fb2 /include/rabbit.hrl
parentf7431d5f427441aa457cffcd202a25283233f8ee (diff)
parent4735326a076ac5f00d11118bd223a6079b7262e7 (diff)
downloadrabbitmq-server-git-7bced52c8cffa8b46cf383aad02dfbc0d99bdaaa.tar.gz
merge bug25962 into default
Diffstat (limited to 'include/rabbit.hrl')
-rw-r--r--include/rabbit.hrl7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index afb6e57645..8b42cdea15 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -112,4 +112,11 @@
-define(ROUTING_HEADERS, [<<"CC">>, <<"BCC">>]).
-define(DELETED_HEADER, <<"BCC">>).
+%% Trying to send a term across a cluster larger than 2^31 bytes will
+%% cause the VM to exit with "Absurdly large distribution output data
+%% buffer". So we limit the max message size to 2^31 - 10^6 bytes (1MB
+%% to allow plenty of leeway for the #basic_message{} and #content{}
+%% wrapping the message body).
+-define(MAX_MSG_SIZE, 2147383648).
+
-define(store_proc_name(N), rabbit_misc:store_proc_name(?MODULE, N)).