mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Serialize s2s stanzas to iolist() rather than list()
SVN Revision: 1936
This commit is contained in:
parent
2c35514537
commit
54a6992ae0
@ -3,6 +3,9 @@
|
|||||||
* src/ejabberd_auth_anonymous.erl: Correct include declaration (thanks
|
* src/ejabberd_auth_anonymous.erl: Correct include declaration (thanks
|
||||||
to badlop). Bug was introduced in r1863.
|
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>
|
2009-03-01 Pablo Polvorin <pablo.polvorin@process-one.net>
|
||||||
|
|
||||||
* src/ejabberd_auth_anonymous.erl: Host argument for ejabberd_hooks's
|
* src/ejabberd_auth_anonymous.erl: Host argument for ejabberd_hooks's
|
||||||
|
@ -554,9 +554,9 @@ send_text(StateData, Text) ->
|
|||||||
|
|
||||||
|
|
||||||
send_element(StateData, #xmlel{ns = ?NS_XMPP, name = 'stream'} = El) ->
|
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_element(StateData, El) ->
|
||||||
send_text(StateData, exmpp_stanza:to_list(El)).
|
send_text(StateData, exmpp_stanza:to_iolist(El)).
|
||||||
|
|
||||||
|
|
||||||
change_shaper(StateData, Host, JID) ->
|
change_shaper(StateData, Host, JID) ->
|
||||||
|
@ -799,9 +799,9 @@ send_text(StateData, Text) ->
|
|||||||
ejabberd_socket:send(StateData#state.socket, Text).
|
ejabberd_socket:send(StateData#state.socket, Text).
|
||||||
|
|
||||||
send_element(StateData, #xmlel{ns = ?NS_XMPP, name = 'stream'} = El) ->
|
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_element(StateData, El) ->
|
||||||
send_text(StateData, exmpp_stanza:to_list(El)).
|
send_text(StateData, exmpp_stanza:to_iolist(El)).
|
||||||
|
|
||||||
send_queue(StateData, Q) ->
|
send_queue(StateData, Q) ->
|
||||||
case queue:out(Q) of
|
case queue:out(Q) of
|
||||||
|
Loading…
Reference in New Issue
Block a user