[ejabberd] Ejabberd not accepting compression after SASL

Holger Weiß holger at zedat.fu-berlin.de
Mon Feb 22 12:47:22 MSK 2016


* samad khadivar <skhadivar at gmail.com> [2016-02-22 10:24]:
> I installed ejabberd-16.01-linux-x86_64-installer.run. I want to use
> compression in ejabberd using smack.
> I find this link
> https://github.com/weiss/ejabberd/commit/5b4aefbacd260d86e8e78a7d6680106383869783?diff=unified
> and I changed ejabberd_c2s.erl according to it and compile it, then replace
> it in /opt/ejabberd-16.01/lib/ejabberd-16.01/ebin/ejabberd_c2s.erl.
> I compile ejabberd_c2s.erl in this directory
>  /opt/ejabberd-16.01/lib/ejabberd-16.01/include(hrl) using this command
> erlc ejabberd_c2s.erl
> I get this warring
> ejabberd_c2s.erl:28: Warning: behaviour ejabberd_config undefined
> ejabberd_c2s.erl:40: Warning: behaviour p1_fsm undefined
> restart my ejabberd and run it. when my clinet want to connect 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

How did you compile ejabberd_c2s.erl?  This shouldn't happen if you just
build the current Git code as described here:

https://github.com/processone/ejabberd#quickstart-guide

However, you can't simply use the resulting ebin/ejabberd_c2s.beam file
with ejabberd 16.01, as the code has been changed in an incompatible
way.  You could either run ejabberd from Git or just wait for the next
release.

Holger


More information about the ejabberd mailing list