Kaynağa Gözat

fix(max topic len): use the maximum length limit by default

zhouzb 5 yıl önce
ebeveyn
işleme
ac0f51fec3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/emqx_topic.erl

+ 1 - 1
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