diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2014-01-30 15:58:41 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2014-01-30 15:58:41 +0000 |
| commit | 5e42e02a1cf2c86812d323c56647dcd30ecdccb5 (patch) | |
| tree | f9a07853bbf7377d1ee4f382c3f5c3adbeca4534 /include/rabbit.hrl | |
| parent | 63f5b98dcd2bb558983f5f90482eefca24f11d72 (diff) | |
| parent | 41ac44a32e1e33cc0c3f3678415af5be58861e46 (diff) | |
| download | rabbitmq-server-git-5e42e02a1cf2c86812d323c56647dcd30ecdccb5.tar.gz | |
merge bug25827 into default
Diffstat (limited to 'include/rabbit.hrl')
| -rw-r--r-- | include/rabbit.hrl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index afb6e57645..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}). @@ -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)). |
