Smack and XMPPFramework lost connection

We are using smack and XMPPFramework to connect OP , we will lose the connection for no reason.

For example, when A loses a connection , B is connected, the checks are as follows:

1.A Users and Session List also show offline
2.A Send IQ is no response
3.A sends message to B, can sent.
4.B sent to A, will be save to the offline table.
5.A ping server is no response.

Openfire version, Smack version, anything in Openfire logs?

openfire 4.3.2
smack 4.3.1
XMPPFramework 4.0

There should be something in Openfire logs during the time of connection loss.

I’m not sure. Is it automatically closed?

2019.06.05 13:55:47 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event SESSION_CLOSED to session 447
Queue : [SESSION_CLOSED, ]

2019.06.05 13:55:47 org.jivesoftware.openfire.session.LocalSession - Suppressing close.
2019.06.05 13:55:47 org.jivesoftware.openfire.SessionManager - Closing session has SM enabled; detaching.
2019.06.05 13:55:47 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 428
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:47 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 428
2019.06.05 13:55:47 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 428
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:47 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 428
2019.06.05 13:55:47 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 428
Queue : [MESSAGE_SENT, ]

2019.06.05 13:55:47 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 428
Queue : [MESSAGE_SENT, ]

2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 422
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:48 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 422
2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 388
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:48 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 388
2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 388
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:48 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 388
2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 422
Queue : [MESSAGE_SENT, ]

2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 388
Queue : [MESSAGE_SENT, ]

2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 442
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:48 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 442
2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 442
Queue : [MESSAGE_SENT, ]

2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 446
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:48 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 446
2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 446
Queue : [MESSAGE_SENT, ]

2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 364
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:48 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 364
2019.06.05 13:55:48 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 364
Queue : [MESSAGE_SENT, ]

2019.06.05 13:55:49 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 432
Queue : [MESSAGE_RECEIVED, ]

2019.06.05 13:55:49 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 432
2019.06.05 13:55:49 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 432
Queue : [MESSAGE_SENT, ]

2019.06.05 13:55:50 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_RECEIVED to session 148
Queue : [MESSAGE_RECEIVED, ]

Which log is this? You can check /openfire/logs/all.log it can have more logs.

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, ]

I can’t upload attachment,Only partial logs can be provided.

We found that the bugs in DetachedCleanupTask.java and SM could cause the user to automatically disconnect in a loop.

You can upload logs to some pastebin site and post a link here.

If you know exact place of a bug, you can report it here or even better - submit a PR on GitHub with proposed fix.

Description

enable StreamManager

  1. If we login user A (A1) and the resource is MOBILE, the system will create a session.
  2. Close APP and login to A (A2) again, and the resource is MOBILE.
  3. 12 minutes later. A1 is Remove by DetachedCleanupTask, and A2 connections are disconnected.

Code:
org.jivesoftware.openfire.SessionManager.DetachedCleanupTask

Thank you for this bug report. I’ve created an issue to track this problem: https://issues.igniterealtime.org/browse/OF-1792

Can you reproduce this problem with other clients?

sorry, I don’t know your question.

reproduce step is :

  1. If we login user A (A1) and the resource is MOBILE, the system will create a session.
  2. Close APP and login to A (A2) again, and the resource is MOBILE.
  3. 12 minutes later. A1 is Remove by DetachedCleanupTask, and A2 connections are disconnected.

Code:
org.jivesoftware.openfire.SessionManager.DetachedCleanupTask

Do you think it is possible to have the same problem with another software client than your APP?

If use same resource login, will have same problem .