With aTalk installed on android device. While replying ping from server in standby, aTalk unexpectedly gets disconnected from network by callConnectionClosedOnErrorListener Exception. It is 100% repeatable on Note-2 and occasionally on Note-3. The callConnectionClosedOnErrorListener may at times also happen on Note-2 and Note-3 while doing testing.
Once it happens on Note-2 while device is in standby, all re connection attempts by ReconnectionManager will always failed until the device is waked up by user. Then the next connection is always successfully.
When failure occurred, external ping to the android device is also not successful. Any option within smack to disabled device from network disconnection?
============ aTalk log ===============
02-02 11:18:18.166 D/SMACK: RECV (0): <iq to='kingfisher@atalk.org/atalk' from='atalk.org' type='get' id='4900234946809486684'><ping xmlns='urn:xmpp:ping'/></iq>
02-02 11:18:18.171 D/SMACK: SENT (0): <iq to='atalk.org' id='4900234946809486684' type='result'></iq>
02-02 11:22:18.196 D/SMACK: RECV (0): <iq to='kingfisher@atalk.org/atalk' from='atalk.org' type='get' id='1353268458384189151'><ping xmlns='urn:xmpp:ping'/></iq>
02-02 11:22:18.201 D/SMACK: SENT (0): <iq to='atalk.org' id='1353268458384189151' type='result'></iq>
02-02 11:22:18.946 W/aTalk: [35] org.jivesoftware.smack.AbstractXMPPConnection.callConnectionClosedOnErrorListener() Connection XMPPTCPConnection[kingfisher@atalk.org/atalk] (0) closed with error
javax.net.ssl.SSLException: Read error: ssl=0x5b557d10: I/O error during system call, Connection timed out
at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_read(Native Method)
at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:686)
at java.io.InputStreamReader.read(InputStreamReader.java:244)
at java.io.BufferedReader.read(BufferedReader.java:310)
at org.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:42)
at org.kxml2.io.KXmlParser.fillBuffer(KXmlParser.java:1496)
at org.kxml2.io.KXmlParser.peekType(KXmlParser.java:979)
at org.kxml2.io.KXmlParser.next(KXmlParser.java:346)
at org.kxml2.io.KXmlParser.next(KXmlParser.java:310)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1244)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:994)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1010)
at java.lang.Thread.run(Thread.java:841)
02-02 11:22:19.011 D/SMACK: XMPPConnection closed due to an exception (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0))
javax.net.ssl.SSLException: Read error: ssl=0x5b557d10: I/O error during system call, Connection timed out
at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_read(Native Method)
at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:686)
at java.io.InputStreamReader.read(InputStreamReader.java:244)
at java.io.BufferedReader.read(BufferedReader.java:310)
at org.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:42)
at org.kxml2.io.KXmlParser.fillBuffer(KXmlParser.java:1496)
at org.kxml2.io.KXmlParser.peekType(KXmlParser.java:979)
at org.kxml2.io.KXmlParser.next(KXmlParser.java:346)
at org.kxml2.io.KXmlParser.next(KXmlParser.java:310)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1244)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:994)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1010)
at java.lang.Thread.run(Thread.java:841)
02-02 11:22:19.591 I/aTalk: [1] impl.sysactivity.SystemActivityNotificationsServiceImpl.fireSystemActivityEvent().487 Received system activity event: net.java.sip.communicator.service.sysactivity.event.SystemActivityEvent[eventID=9]
02-02 11:22:20.011 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 12
02-02 11:22:21.011 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 11
02-02 11:22:22.011 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 10
02-02 11:22:23.011 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 9
02-02 11:22:24.011 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 8
02-02 11:22:25.011 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 7
02-02 11:22:26.016 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 6
02-02 11:22:27.016 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 5
02-02 11:22:28.021 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 4
02-02 11:22:29.021 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 3
02-02 11:22:30.016 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 2
02-02 11:22:31.021 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 1
02-02 11:22:32.021 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 0
02-02 11:22:32.021 I/aTalk: [36] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.reconnectingIn().1404 ReconnectionManager starting connection attempt...
02-02 11:22:32.021 D/SMACK: XMPPConnection (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0)) will reconnect in 0
02-02 11:22:32.026 I/aTalk: [36] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.reconnectingIn().1404 ReconnectionManager starting connection attempt...
02-02 11:22:32.086 D/SMACK: Reconnection failed due to an exception (XMPPTCPConnection[kingfisher@atalk.org/atalk] (0))
org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed: 'atalk.sytes.net:5222' failed because: de.measite.minidns.util.MultipleIoException: sendto failed: ENETUNREACH (Network is unreachable), failed to connect to /192.168.1.254 (port 53) after 5000ms: connect failed: ENETUNREACH (Network is unreachable), sendto failed: ENETUNREACH (Network is unreachable), failed to connect to /8.8.8.8 (port 53) after 5000ms: connect failed: ENETUNREACH (Network is unreachable), sendto failed: ENETUNREACH (Network is unreachable), failed to connect to /2001:4860:4860::8888 (port 53) after 5000ms: connect failed: ENETUNREACH (Network is unreachable), sendto failed: ENETUNREACH (Network is unreachable), failed to connect to m.root-servers.net/202.12.27.33 (port 53) after 5000ms: connect failed: ENETUNREACH (Network is unreachable), sendto failed: ENETUNREACH (Network is unreachable), failed to connect to d.root-servers.net/2001:500:2d::d (port 53) after 5000ms: connect failed: ENETUNREACH (Network is unreachable)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:619)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:902)
at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:380)
at org.jivesoftware.smack.ReconnectionManager$2.run(ReconnectionManager.java:289)
at java.lang.Thread.run(Thread.java:841)
### The whole cycle repeated until device waked up by user ###