Add server_keepalive config

This commit is contained in:
Feng Lee 2018-08-31 00:32:56 +08:00
parent 0379219a04
commit e6bed24bb3
2 changed files with 10 additions and 0 deletions

View File

@ -580,6 +580,11 @@ zone.external.enable_stats = on
## Value: boolean
## 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
## until 'Keepalive * backoff * 2' timeout.
##

View File

@ -735,6 +735,11 @@ end}.
{datatype, {enum, [true, false]}}
]}.
%% @doc Server Keepalive
{mapping, "zone.$name.server_keepalive", "emqx.zones", [
{datatype, integer}
]}.
%% @doc Keepalive backoff
{mapping, "zone.$name.keepalive_backoff", "emqx.zones", [
{default, 0.75},