fix(conf): change `max_topic_levels` default configuration #6295
This commit is contained in:
commit
354b2a3a19
|
@ -577,8 +577,9 @@ mqtt {
|
||||||
## @doc mqtt.max_topic_levels
|
## @doc mqtt.max_topic_levels
|
||||||
## ValueType: Integer
|
## ValueType: Integer
|
||||||
## Range: [1, 65535]
|
## Range: [1, 65535]
|
||||||
## Default: 65535
|
## Default: 128
|
||||||
max_topic_levels = 65535
|
## Depth so big may lead to subscribing performance issues
|
||||||
|
max_topic_levels = 128
|
||||||
|
|
||||||
## Maximum QoS allowed.
|
## Maximum QoS allowed.
|
||||||
##
|
##
|
||||||
|
|
|
@ -59,7 +59,7 @@ mqtt_conf() ->
|
||||||
max_inflight => 32,max_mqueue_len => 1000,
|
max_inflight => 32,max_mqueue_len => 1000,
|
||||||
max_packet_size => 1048576,max_qos_allowed => 2,
|
max_packet_size => 1048576,max_qos_allowed => 2,
|
||||||
max_subscriptions => infinity,max_topic_alias => 65535,
|
max_subscriptions => infinity,max_topic_alias => 65535,
|
||||||
max_topic_levels => 65535,mqueue_default_priority => lowest,
|
max_topic_levels => 128,mqueue_default_priority => lowest,
|
||||||
mqueue_priorities => disabled,mqueue_store_qos0 => true,
|
mqueue_priorities => disabled,mqueue_store_qos0 => true,
|
||||||
peer_cert_as_clientid => disabled,
|
peer_cert_as_clientid => disabled,
|
||||||
peer_cert_as_username => disabled,
|
peer_cert_as_username => disabled,
|
||||||
|
@ -200,7 +200,7 @@ t_chan_caps(_) ->
|
||||||
#{max_clientid_len := 65535,
|
#{max_clientid_len := 65535,
|
||||||
max_qos_allowed := 2,
|
max_qos_allowed := 2,
|
||||||
max_topic_alias := 65535,
|
max_topic_alias := 65535,
|
||||||
max_topic_levels := 65535,
|
max_topic_levels := 128,
|
||||||
retain_available := true,
|
retain_available := true,
|
||||||
shared_subscription := true,
|
shared_subscription := true,
|
||||||
subscription_identifiers := true,
|
subscription_identifiers := true,
|
||||||
|
|
Loading…
Reference in New Issue