mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
When max_stanza_size is exceeded, return meaningful error message (EJAB-752)
SVN Revision: 2142
This commit is contained in:
parent
72b842d8d1
commit
48392832ef
@ -895,6 +895,11 @@ session_established({xmlstreamend, _Name}, StateData) ->
|
|||||||
send_text(StateData, ?STREAM_TRAILER),
|
send_text(StateData, ?STREAM_TRAILER),
|
||||||
{stop, normal, StateData};
|
{stop, normal, StateData};
|
||||||
|
|
||||||
|
session_established({xmlstreamerror, "XML stanza is too big" = E}, StateData) ->
|
||||||
|
Text = ?POLICY_VIOLATION_ERR(StateData#state.lang, E) ++ ?STREAM_TRAILER,
|
||||||
|
send_text(StateData, Text),
|
||||||
|
{stop, normal, StateData};
|
||||||
|
|
||||||
session_established({xmlstreamerror, _}, StateData) ->
|
session_established({xmlstreamerror, _}, StateData) ->
|
||||||
send_text(StateData, ?INVALID_XML_ERR ++ ?STREAM_TRAILER),
|
send_text(StateData, ?INVALID_XML_ERR ++ ?STREAM_TRAILER),
|
||||||
{stop, normal, StateData};
|
{stop, normal, StateData};
|
||||||
|
Loading…
Reference in New Issue
Block a user