We configure Ping timeout, set 5s interval ,two timeouts will auto reconnect .
This is APP auto reconnect time:
2019-06-06 12:10:56.773244+0800 COD[88769:3648191] Reconnection
2019-06-06 12:22:56.548609+0800 COD[88769:3648191] Reconnection
2019-06-06 12:34:56.669485+0800 COD[88769:3648191] Reconnection
2019-06-06 12:46:56.425851+0800 COD[88769:3648191] Reconnection
2019-06-06 12:58:56.179688+0800 COD[88769:3648191] Reconnection
2019-06-06 13:11:02.208777+0800 COD[88769:3648191] Reconnection
2019-06-06 13:22:56.067403+0800 COD[88769:3648191] Reconnection
2019-06-06 13:34:56.302810+0800 COD[88769:3648191] Reconnection
This is Openfire log:
2019.06.06 12:10:32 DEBUG [socket_c2s-thread-2]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 7
2019.06.06 12:10:32 DEBUG [socket_c2s-thread-2]: class org.jivesoftware.openfire.streammanagement.StreamManager[192.168.0.116] - Received acknowledgement from client: h=115
2019.06.06 12:10:36 DEBUG [DefaultQuartzScheduler_QuartzSchedulerThread]: org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers
2019.06.06 12:10:38 INFO [org.jitsi.util.concurrent.RecurringRunnableExecutor.thread-org.jitsi.videobridge.health.Health]: org.jitsi.videobridge.Videobridge - CAT=stat create_conf,conf_id=da13eeb4fa9b06ff conf_name=null,logging=false,conf_count=1,ch_count=0,v_streams=0
2019.06.06 12:10:38 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with dfaa488048a31301 not ready yet.
2019.06.06 12:10:38 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:10:38 DEBUG [NioProcessor-2]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 7
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:38 DEBUG [NioProcessor-2]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 7
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:38 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 7
2019.06.06 12:10:38 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 7
2019.06.06 12:10:38 DEBUG [NioProcessor-2]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 7
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:39 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with dfaa488048a31301 not ready yet.
2019.06.06 12:10:39 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:10:39 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with c6dc16e605044f78 not ready yet.
2019.06.06 12:10:39 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:10:40 INFO [org.jitsi.util.concurrent.RecurringRunnableExecutor.thread-org.jitsi.videobridge.health.Health]: org.jitsi.videobridge.health.Health - Performed a successful health check in 2279ms. Sticky failure: false
2019.06.06 12:10:44 DEBUG [TaskEngine-pool-12]: org.jivesoftware.openfire.spi.RoutingTableImpl - Removing client route cod_60000002@xcom0001/MOBILE
2019.06.06 12:10:44 DEBUG [TaskEngine-pool-12]: org.jivesoftware.openfire.plugin.ofmeet.OfMeetPlugin - OfMeet Plugin - sessionDestroyed cod_60000002@xcom0001/MOBILE
2019.06.06 12:10:44 DEBUG [NioProcessor-2]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 7
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:44 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 7
2019.06.06 12:10:44 DEBUG [socket_c2s-thread-3]: org.jivesoftware.openfire.spi.RoutingTableImpl - Failed to route packet to JID: cod_60000002@xcom0001/MOBILE packet:
2019.06.06 12:10:44 DEBUG [socket_c2s-thread-3]: org.jivesoftware.openfire.IQRouter - IQ sent to unreachable address:
2019.06.06 12:10:50 INFO [org.jitsi.util.concurrent.RecurringRunnableExecutor.thread-org.jitsi.videobridge.health.Health]: org.jitsi.videobridge.Videobridge - CAT=stat create_conf,conf_id=8e421b9ba992c9f1 conf_name=null,logging=false,conf_count=1,ch_count=0,v_streams=0
2019.06.06 12:10:50 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with 7463243d59f70606 not ready yet.
2019.06.06 12:10:50 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:10:51 DEBUG [NioProcessor-2]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 7
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:51 DEBUG [socket_c2s-thread-2]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 7
2019.06.06 12:10:51 DEBUG [socket_c2s-thread-2]: org.jivesoftware.openfire.spi.RoutingTableImpl - Failed to route packet to JID: cod_60000002@xcom0001/MOBILE packet:
2019.06.06 12:10:51 DEBUG [socket_c2s-thread-2]: org.jivesoftware.openfire.IQRouter - IQ sent to unreachable address:
2019.06.06 12:10:51 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with 7463243d59f70606 not ready yet.
2019.06.06 12:10:51 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:10:51 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with 55f1c7e613ea881c not ready yet.
2019.06.06 12:10:51 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:10:51 INFO [org.jitsi.util.concurrent.RecurringRunnableExecutor.thread-VideobridgeExpireThread]: org.jitsi.videobridge.VideobridgeExpireThread - Running expire()
2019.06.06 12:10:52 INFO [org.jitsi.util.concurrent.RecurringRunnableExecutor.thread-org.jitsi.videobridge.health.Health]: org.jitsi.videobridge.health.Health - Performed a successful health check in 2231ms. Sticky failure: false
2019.06.06 12:10:56 DEBUG [NioProcessor-2]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event SESSION_CLOSED to session 7
Queue : [SESSION_CLOSED, ]
2019.06.06 12:10:56 DEBUG [socket_c2s-thread-3]: org.jivesoftware.openfire.session.LocalSession - Suppressing close.
2019.06.06 12:10:56 DEBUG [socket_c2s-thread-3]: org.jivesoftware.openfire.SessionManager - Closing session has SM enabled; detaching.
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event SESSION_OPENED to session 8
Queue : [SESSION_OPENED, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [SESSION_OPENED, , MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-2]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: class org.jivesoftware.openfire.streammanagement.StreamManager[192.168.0.116] - Attempting resumption for TU9CSUxFAGFxaTJheHJvYWg=, h=116
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: class org.jivesoftware.openfire.streammanagement.StreamManager[192.168.0.116] - Resuming session cod_60000002@xcom0001/MOBILE
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.jivesoftware.openfire.spi.RoutingTableImpl - Adding client route cod_60000002@xcom0001/MOBILE
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.jivesoftware.openfire.plugin.ofmeet.OfMeetPlugin - OfMeet Plugin - sessionCreated cod_60000002@xcom0001/MOBILE
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-3]: org.jivesoftware.openfire.plugin.ofmeet.OfMeetPlugin - OfMeet Plugin - resourceBound cod_60000002@xcom0001/MOBILE
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-2]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-2]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-2]: com.xinhoo.settings.SettingIQHandler - cod_60000002@xcom0001的请求进入程序
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-2]: com.xinhoo.settings.SettingIQHandler - cod_60000002@xcom0001的请求给与响应
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_RECEIVED, , MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-2]: org.jivesoftware.openfire.spi.RoutingTableImpl - Adding client route cod_60000002@xcom0001/MOBILE
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_RECEIVED, , MESSAGE_SENT, , MESSAGE_SENT, ]
2019.06.06 12:10:58 DEBUG [socket_c2s-thread-2]: org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 8
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]
2019.06.06 12:10:58 INFO [socket_c2s-thread-2]: com.xinhoo.groupchat.helper.IQGetHelper - 1. redis中缓存数据库单聊消息后,再一次查询[ cod_60000002 ]的单聊消息[ 0 ]条,时间点[ 1559627029266 ]
2019.06.06 12:10:58 INFO [socket_c2s-thread-2]: com.xinhoo.groupchat.helper.IQGetHelper - 2. 获取[ cod_60000002 ]群里的针对单人的消息[ 0 ]条,时间点[ 1559627029266 ]
2019.06.06 12:10:58 INFO [socket_c2s-thread-2]: com.xinhoo.groupchat.helper.IQGetHelper - 3. redis中缓存数据库群聊消息后,再一次查询[ codm_1080000000 ]的群聊消息[ 0 ]条,时间点[ 1559627029266 ]
2019.06.06 12:10:58 INFO [socket_c2s-thread-2]: com.xinhoo.groupchat.helper.IQGetHelper - 4. 获取[ cod_60000002 ]all message结束, 总共[ 0 ]条
2019.06.06 12:10:58 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 8
Queue : [MESSAGE_SENT, ]
2019.06.06 12:11:02 INFO [org.jitsi.util.concurrent.RecurringRunnableExecutor.thread-org.jitsi.videobridge.health.Health]: org.jitsi.videobridge.Videobridge - CAT=stat create_conf,conf_id=d25158e4b649a74a conf_name=null,logging=false,conf_count=1,ch_count=0,v_streams=0
2019.06.06 12:11:02 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with ba8cb3cbb589ffe4 not ready yet.
2019.06.06 12:11:02 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:11:03 DEBUG [DefaultQuartzScheduler_QuartzSchedulerThread]: org.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers
2019.06.06 12:11:04 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with ba8cb3cbb589ffe4 not ready yet.
2019.06.06 12:11:04 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:11:04 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - SCTP connection with 40c64b49ac4cde8 not ready yet.
2019.06.06 12:11:04 WARN [EndpointConnectionStatusMonitoring]: org.jitsi.videobridge.EndpointMessageTransport - No available transport channel, can’t send a message
2019.06.06 12:11:04 DEBUG [NioProcessor-3]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 8
Queue : [MESSAGE_RECEIVED, ]