<div dir="ltr"><div>I am trying to use `smack-4.1` with `ejabberd-15.x`. But after few (1-2) minutes of idle client, when I try to send message, I get SMACK error "server closed the connection" on the client side<br><br>* I run ejabberd **WITH OUT** `mod_ping`<br><br></div>What is the ejabberd config to prevent idle client disconnects?<br><br><br><div><br><br>> org.jivesoftware.smack.SmackException: Parser got END_DOCUMENT event.<br>> This could happen e.g. if the server closed the connection without<br>> sending a closing stream element<br><br><br>* Smack config on client (Android)<br><br>            config = XMPPTCPConnectionConfiguration.builder()<br>                    .setHost(serverConfig.xmppServer())<br>                    .setServiceName(serverConfig.xmppServiceName())<br>                    .setUsernameAndPassword(accountID, password)<br>                    .setSendPresence(true)<br>                    .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled)<br>                    .setCompressionEnabled(false).build();<br><br>            this.xmppConnection = new XMPPTCPConnection(config);<br>            this.xmppConnection.addConnectionListener(this);<br>            this.xmppConnection.addAsyncStanzaListener(new XMPPStanzaListener(), new XMPPStanzaFilter());<br>            this.xmppConnection.setUseStreamManagement(true);<br>            this.xmppConnection.setUseStreamManagementResumption(true);<br><br><br>Would you be able to tell appropriate configs for both<br><br>* ejabberd and<br>* smack 4.1<br><br>to avoid the above mentioned issue?<br><br><br><br><br></div></div>