Tweak ejabberd_listener to allow ejabberd_xmlrpc work properly

This commit is contained in:
Badlop 2013-05-14 18:50:29 +02:00
parent 80f165a55c
commit c0bf054583
1 changed files with 5 additions and 1 deletions

View File

@ -175,7 +175,11 @@ listen_tcp(PortIP, Module, SockOpts, Port, IPS) ->
catch
_:_ -> []
end,
Res = gen_tcp:listen(Port, [binary,
DeliverAs = case Module of
ejabberd_xmlrpc -> list;
_ -> binary
end,
Res = gen_tcp:listen(Port, [DeliverAs,
{packet, 0},
{active, false},
{reuseaddr, true},