我正在使用 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 秒的保活有什么区别?