Ejabberd not accepting compression after SASL

Hi every body.
I have problem in compression. Ejabberd not accepting compression after SASL. Although XEP-0170 is just a best practice XEP, certain libraries (e.g. Smack) follow this practice.
Based on XEP-0170, the recommended of order stream negotiation is
1.TLS
2.SASL
3.Stream compression
4.Resource binding
Can I uses Stream Compression (XEP-0138) after SASL authentication?
Did solve the issue in any version of ejabberd?
Thanks for your kind response.

This feature was recently

This feature was recently committed to ejabberd source code, see https://github.com/processone/ejabberd/commit/5b4aefbacd260d86e8e78a7d66...

thank you badlop. can I

thank you badlop.
can I compile ejabberd_c2s.erl separate and use it in ejabberd-16.01-linux-x86_64-install. I means, copy compiled ejabberd_c2s.erl in /opt/ejabberd-16.01/lib/ejabberd-16.01/ebin/ ?
I did that but when my clinet can not connect and it returns this error.

2016-02-22 10:13:07.658 [error] <0.1703.0> CRASH REPORT Process <0.1703.0> with 0 neighbours exited with reason: call to undefined function p1_logger:debug_msg(ejabberd_c2s, 1847, "Send XML on stream = ~p", [<<"<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber....">>]) in p1_fsm:terminate/8 line 760

Generally yes, it is possible

Generally yes, it is possible to compile one file, copy it and restart ejabberd.

In your case, the problem is that ejabberd was compiled with lager instead of p1_logger, and you compiled ejabberd_c2s with p1_logger instead of lager. Try compiling again, but when calling ./configure, provide some option to disable logger or to enable lager (I guess there is some option over there).

By the way, 16.02 is expected to be released in a few days, just in case you can't solve the compiling problem.

Syndicate content