mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-16 17:15:55 +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:
parent
95138864f4
commit
5856f6d06a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user