Compression does not work with smack 3.2.1 Client API(Java).

Hi, I checked the related info and found there is a problem when using smack api connect to ejabberd server when enable the compression feature.

I tracked the data transfer and found the smack do the authentication first, bind the resource, and then request the compression feature, in ejabberd server, it handle the rest requests as wait_for_session... no longer hangle the compression feature request.

The way to fix this issue is simple(Even it took me about two days to finger out): move the coresponse request before the authicention, you need to change the file "org\jivesoftware\smack\XMPPConnection.java", move the code in login method and loginAnonymously.

Ok, that's it.

smtd5 wrote: The way to fix

smtd5 wrote:

The way to fix this issue is simple(Even it took me about two days to finger out): move the coresponse request before the authicention, you need to change the file "org\jivesoftware\smack\XMPPConnection.java", move the code in login method and loginAnonymously.

Ok, that's it.

Hi

I have the same issue. So, should it be as simple as moving "useCompression" before saslAuthentication.authenticate? Not really working for me.

Thanks in advance.

Syndicate content