25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Serialize s2s stanzas to iolist() rather than list()

SVN Revision: 1936
This commit is contained in:
Pablo Polvorin 2009-03-02 15:48:01 +00:00
parent 2c35514537
commit 54a6992ae0
3 changed files with 7 additions and 4 deletions

View File

@ -3,6 +3,9 @@
* src/ejabberd_auth_anonymous.erl: Correct include declaration (thanks
to badlop). Bug was introduced in r1863.
* src/ejabberd_s2s_in.erl, src/ejabberd_s2s_out.erl: Serialize stanzas
to iolist().
2009-03-01 Pablo Polvorin <pablo.polvorin@process-one.net>
* src/ejabberd_auth_anonymous.erl: Host argument for ejabberd_hooks's

View File

@ -554,9 +554,9 @@ send_text(StateData, Text) ->
send_element(StateData, #xmlel{ns = ?NS_XMPP, name = 'stream'} = El) ->
send_text(StateData, exmpp_stream:to_list(El));
send_text(StateData, exmpp_stream:to_iolist(El));
send_element(StateData, El) ->
send_text(StateData, exmpp_stanza:to_list(El)).
send_text(StateData, exmpp_stanza:to_iolist(El)).
change_shaper(StateData, Host, JID) ->

View File

@ -799,9 +799,9 @@ send_text(StateData, Text) ->
ejabberd_socket:send(StateData#state.socket, Text).
send_element(StateData, #xmlel{ns = ?NS_XMPP, name = 'stream'} = El) ->
send_text(StateData, exmpp_stream:to_list(El));
send_text(StateData, exmpp_stream:to_iolist(El));
send_element(StateData, El) ->
send_text(StateData, exmpp_stanza:to_list(El)).
send_text(StateData, exmpp_stanza:to_iolist(El)).
send_queue(StateData, Q) ->
case queue:out(Q) of