From 23062abbb43d2b0ee9432a3e53035b38a4151a61 Mon Sep 17 00:00:00 2001 From: Feng Date: Tue, 29 Sep 2015 10:08:52 +0800 Subject: [PATCH] retry interval, and idle_timeout --- rel/files/emqttd.config | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/rel/files/emqttd.config b/rel/files/emqttd.config index 3980fba81..55a8a9455 100644 --- a/rel/files/emqttd.config +++ b/rel/files/emqttd.config @@ -81,6 +81,8 @@ ]}, %% Client {client, [ + %% Socket is connected, but no 'CONNECT' packet received + {idle_timeout, 10}, %% seconds %TODO: Network ingoing limit %{ingoing_rate_limit, '64KB/s'} %TODO: Reconnet control @@ -91,20 +93,17 @@ %% 0 means no limit {max_inflight, 100}, - %% Max retries for unack Qos1/2 messages - {unack_retries, 3}, - - %% Retry after 4, 8, 16 seconds - {unack_timeout, 4}, + %% Retry interval for redelivering QoS1/2 messages. + {unack_retry_interval, 20}, %% Awaiting PUBREL Timeout - {await_rel_timeout, 8}, + {await_rel_timeout, 20}, %% Max Packets that Awaiting PUBREL, 0 means no limit {max_awaiting_rel, 0}, %% Statistics Collection Interval(seconds) - {collect_interval, 10}, + {collect_interval, 20}, %% Expired after 2 days {expired_after, 48}