25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-14 15:59:04 +01:00

XEP-0198: Increase default "max_ack_queue" value

During login, clients might receive a relatively large number of stanzas
in one go.  For some users, the default value of the "max_ack_queue"
option turned out to be too small in that situation.
This commit is contained in:
Holger Weiss 2015-07-01 21:15:05 +02:00
parent 95138864f4
commit 5856f6d06a

View File

@ -308,7 +308,7 @@ init([{SockMod, Socket}, Opts]) ->
MaxAckQueue = case proplists:get_value(max_ack_queue, Opts) of
Limit when is_integer(Limit), Limit > 0 -> Limit;
infinity -> infinity;
_ -> 500
_ -> 1000
end,
ResumeTimeout = case proplists:get_value(resume_timeout, Opts) of
Timeout when is_integer(Timeout), Timeout >= 0 -> Timeout;