summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-06-12 18:34:34 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-06-12 18:34:34 +0100
commitf69956305a2ee1a0fe7542ef5e630b5c4514058e (patch)
treee71039e06b80bb75bbdd3e2659caa38223f04f9b /include
parent88bdcd465e8d9a55bbeb554c939d93ede37fd7a0 (diff)
downloadrabbitmq-server-f69956305a2ee1a0fe7542ef5e630b5c4514058e.tar.gz
refactor: move constant and give it a better name
Diffstat (limited to 'include')
-rw-r--r--include/rabbit.hrl9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index 5c73c8b8..fdc8caff 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -93,6 +93,15 @@
-define(PROTOCOL_VERSION, "AMQP 0-9-1 / 0-9 / 0-8").
-define(ERTS_MINIMUM, "5.6.3").
+%% EMPTY_FRAME_SIZE, 8 = 1 + 2 + 4 + 1
+%% - 1 byte of frame type
+%% - 2 bytes of channel number
+%% - 4 bytes of frame payload length
+%% - 1 byte of payload trailer FRAME_END byte
+%% See rabbit_binary_generator:check_empty_frame_size/0, an assertion
+%% called at startup.
+-define(EMPTY_FRAME_SIZE, 8).
+
-define(MAX_WAIT, 16#ffffffff).
-define(HIBERNATE_AFTER_MIN, 1000).