From e862ff6b2024b5af51c09ab9a3830e58c896f29f Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Wed, 24 Mar 2021 21:48:11 +0100 Subject: [PATCH] chore(config): validate max_inflight range --- priv/emqx.schema | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/priv/emqx.schema b/priv/emqx.schema index 0379e83d4..9b334f83c 100644 --- a/priv/emqx.schema +++ b/priv/emqx.schema @@ -933,10 +933,11 @@ end}. ]}. %% @doc Max number of QoS 1 and 2 messages that can be “inflight” at one time. -%% 0 means no limit +%% 0 is equivalent to maximum allowed {mapping, "zone.$name.max_inflight", "emqx.zones", [ {default, 0}, {datatype, integer} + {validators, ["range:1-32767"]}, ]}. %% @doc Retry interval for redelivering QoS1/2 messages.