Smack using obsolete sessions protocol

Smack 3.2.2 throws the error below after authenticating and binding a resource. Sessions are obsolete and were removed from the XMPP spec in RFC 6121. It would be nice if Smack only used sessions if the server advertised it as a stream feature. Thoughts?

Exception in thread “main” Session establishment not offered by server:

at org.jivesoftware.smack.SASLAuthentication.bindResourceAndEstablishSession(SASLAuthentication.java:478)

at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:348)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:203)

1 Like

Logged as SMACK-379.

Patches are appreciated!