summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-01-24 15:43:54 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-01-24 15:43:54 +0000
commit6dfdedb69d5b9b7132c1c0fbc57d4a44c5d2aefb (patch)
tree46c5fc528b954a23537cac13814951486bbe7961 /include
parenteefbc57b7839b2650a561ff3b9db12af9760aaa9 (diff)
parent6ae700cecbe147708baa795ccd14bb523ee433d4 (diff)
downloadrabbitmq-server-git-6dfdedb69d5b9b7132c1c0fbc57d4a44c5d2aefb.tar.gz
Merge bug 25817
Diffstat (limited to 'include')
-rw-r--r--include/rabbit.hrl11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index bd7a0eedf5..6d117e3d6f 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -70,7 +70,7 @@
is_persistent}).
-record(ssl_socket, {tcp, ssl}).
--record(delivery, {mandatory, sender, message, msg_seq_no}).
+-record(delivery, {mandatory, confirm, sender, message, msg_seq_no}).
-record(amqp_error, {name, explanation = "", method = none}).
-record(event, {type, props, timestamp}).
@@ -111,3 +111,12 @@
-define(INVALID_HEADERS_KEY, <<"x-invalid-headers">>).
-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)).