mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
XEP-0198: Don't log protocol issues
There are corner cases where certain clients acknowledge more stanzas than they received. Nothing really bad will happen in those cases, and server administrators can't do anything about such issues anyway.
This commit is contained in:
parent
32abcbca6c
commit
3b3f3b9131
@ -2672,10 +2672,6 @@ handle_r(StateData) ->
|
|||||||
|
|
||||||
handle_a(#state{jid = JID, n_stanzas_out = NumStanzasOut} = StateData, Attrs) ->
|
handle_a(#state{jid = JID, n_stanzas_out = NumStanzasOut} = StateData, Attrs) ->
|
||||||
case catch jlib:binary_to_integer(xml:get_attr_s(<<"h">>, Attrs)) of
|
case catch jlib:binary_to_integer(xml:get_attr_s(<<"h">>, Attrs)) of
|
||||||
H when is_integer(H), H > NumStanzasOut ->
|
|
||||||
?WARNING_MSG("~s acknowledged ~B stanzas, but only ~B were sent",
|
|
||||||
[jlib:jid_to_string(JID), H, NumStanzasOut]),
|
|
||||||
ack_queue_drop(StateData, NumStanzasOut);
|
|
||||||
H when is_integer(H), H >= 0 ->
|
H when is_integer(H), H >= 0 ->
|
||||||
?DEBUG("~s acknowledged ~B of ~B stanzas",
|
?DEBUG("~s acknowledged ~B of ~B stanzas",
|
||||||
[jlib:jid_to_string(JID), H, NumStanzasOut]),
|
[jlib:jid_to_string(JID), H, NumStanzasOut]),
|
||||||
|
Loading…
Reference in New Issue
Block a user