powered by Jive Software

Resuming a stream after instantShutdown


#1

Hi,

To use stream management, I can call connection.instantShutdown();

But how do I resume the same stream?

Doing a regular connect + login results in a new connection replacing the original one (hence potential message lost).

Working with:
SMACK 4.2.2
eJabberd 17.12

Thanks,


#2

Smack should attempt to resume a stream on login().


#3

Hi, thanks but doing login after instantShutdown is not acceptable by SMACK:

org.jivesoftware.smack.SmackException$NotConnectedException: Client is not, or no longer, connected. Did you call connect() before login()?


#4

No, I meant a subsequent connect(); login(); after instantShutdown() should try to resume a previous stream/session.


#6

My bad, indeed using connect and login again resume the stream ok after instantShutdown(). Thanks.