Disable Smacks support for Stream Management (for now)
We ideally enable Stream Management (see but for that, the reconnection logic in Spark probably needs work. I'm disabling it for now, until we have had a proper look.
@@ -264,6 +264,7 @@ public class LoginDialog {
} catch (XmppStringprepException e) {
throw new IllegalStateException(e);
}
+
final XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder()
.setUsernameAndPassword(loginUsername, loginPassword)
.setXmppDomain(xmppDomain)
@@ -1119,6 +1120,9 @@ public class LoginDialog {
try
{
+ // TODO: SPARK-2140 - add support to Spark for stream management. Challenges expected around reconnection logic!
+ XMPPTCPConnection.setUseStreamManagementDefault(false);
+
connection = new XMPPTCPConnection( retrieveConnectionConfiguration() );
connection.setParsingExceptionCallback( new ExceptionLoggingCallback() );
