Add server_keepalive config
This commit is contained in:
parent
0379219a04
commit
e6bed24bb3
|
@ -580,6 +580,11 @@ zone.external.enable_stats = on
|
||||||
## Value: boolean
|
## Value: boolean
|
||||||
## zone.external.shared_subscription = false
|
## zone.external.shared_subscription = false
|
||||||
|
|
||||||
|
## Server Keep Alive
|
||||||
|
##
|
||||||
|
## Value: Number
|
||||||
|
## zone.external.server_keepalive = 0
|
||||||
|
|
||||||
## The backoff for MQTT keepalive timeout. The broker will kick a connection out
|
## The backoff for MQTT keepalive timeout. The broker will kick a connection out
|
||||||
## until 'Keepalive * backoff * 2' timeout.
|
## until 'Keepalive * backoff * 2' timeout.
|
||||||
##
|
##
|
||||||
|
|
|
@ -735,6 +735,11 @@ end}.
|
||||||
{datatype, {enum, [true, false]}}
|
{datatype, {enum, [true, false]}}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
|
%% @doc Server Keepalive
|
||||||
|
{mapping, "zone.$name.server_keepalive", "emqx.zones", [
|
||||||
|
{datatype, integer}
|
||||||
|
]}.
|
||||||
|
|
||||||
%% @doc Keepalive backoff
|
%% @doc Keepalive backoff
|
||||||
{mapping, "zone.$name.keepalive_backoff", "emqx.zones", [
|
{mapping, "zone.$name.keepalive_backoff", "emqx.zones", [
|
||||||
{default, 0.75},
|
{default, 0.75},
|
||||||
|
|
Loading…
Reference in New Issue