diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-01-17 14:36:12 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-01-17 14:36:12 +0000 |
| commit | fda8454b956dd9762233a44880eacb0c27ed522b (patch) | |
| tree | d9cef30e689ae1f4391a69e7604f84e68dc1cb01 /include/rabbit.hrl | |
| parent | 24392affff5e048899e712806e7f70e4540e7604 (diff) | |
| parent | d3cddfd66ab5bc8265f268a3b7d54b79bbf7a9f8 (diff) | |
| download | rabbitmq-server-git-fda8454b956dd9762233a44880eacb0c27ed522b.tar.gz | |
stable to default
Diffstat (limited to 'include/rabbit.hrl')
| -rw-r--r-- | include/rabbit.hrl | 7 |
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)). |
