diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-02-17 15:07:54 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-02-17 15:07:54 +0000 |
| commit | 5534d8c648a8083f5faeb43f58d4ab6fa6ccc2e3 (patch) | |
| tree | fcfa26e414e5fe5d25c5bdbde5c9667e89d4352d /include | |
| parent | 6c8aeb51f83950dff052f72f6de31748ccc5de7a (diff) | |
| parent | a6f9f6542d940e350b75426ed5e03b034cd39771 (diff) | |
| download | rabbitmq-server-git-5534d8c648a8083f5faeb43f58d4ab6fa6ccc2e3.tar.gz | |
Merge bug25627 (again)
Diffstat (limited to 'include')
| -rw-r--r-- | include/rabbit.hrl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index afb6e57645..19eef65add 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -60,7 +60,7 @@ -record(trie_node, {exchange_name, node_id}). -record(trie_edge, {exchange_name, node_id, word}). --record(trie_binding, {exchange_name, node_id, destination}). +-record(trie_binding, {exchange_name, node_id, destination, arguments}). -record(listener, {node, protocol, host, ip_address, port}). @@ -70,10 +70,10 @@ 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}). +-record(event, {type, props, reference = undefined, timestamp}). -record(message_properties, {expiry, needs_confirming = false}). @@ -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)). |
