【发布时间】:2016-04-06 16:20:40
【问题描述】:
我正在使用 Diffusion v5.6.6 创建一个移动应用程序,重要的是当客户端失去移动连接时应用程序恢复,然后稍后再次获得连接。我可以在 Connectors.xml 中看到与此相关的两个设置:
<!-- This is the idle time (no inbound messages) before a
client will be pinged by the server. A response must
be received by Diffusion before the next interval,
else the client is considered to be disconnected. -->
<system-ping-frequency>90s</system-ping-frequency>
和
<reconnect>
<!-- This is the amount of milliseconds a session
will be kept alive after a sudden connection loss. -->
<keep-alive>60000</keep-alive>
</reconnect>
这个 90 秒的 ping 和 60 秒的保活有什么区别?
【问题讨论】:
标签: push-diffusion