From ac0f51fec35b6321ad2da79be0198eb51a130b33 Mon Sep 17 00:00:00 2001 From: zhouzb Date: Mon, 28 Dec 2020 11:03:54 +0800 Subject: [PATCH] fix(max topic len): use the maximum length limit by default --- src/emqx_topic.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqx_topic.erl b/src/emqx_topic.erl index cda057f06..e4ba90023 100644 --- a/src/emqx_topic.erl +++ b/src/emqx_topic.erl @@ -42,7 +42,7 @@ -type(word() :: '' | '+' | '#' | binary()). -type(words() :: list(word())). --define(MAX_TOPIC_LEN, 4096). +-define(MAX_TOPIC_LEN, 65535). %%-------------------------------------------------------------------- %% APIs