From f0d5e0aa6933d982704269b4d2f3e00a3cce4f13 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Thu, 10 May 2018 21:54:03 -0500 Subject: [PATCH] Introduce MAX_SUPPORTED_PRIORITY Part of rabbitmq/rabbitmq-server#1590. [#157380396] --- include/rabbit.hrl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 2a1f90c4..86a6b622 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -268,6 +268,9 @@ -define(CHANNEL_OPERATION_TIMEOUT, rabbit_misc:get_channel_operation_timeout()). +%% Max supported number of priorities for a priority queue. +-define(MAX_SUPPORTED_PRIORITY, 255). + %% 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