25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Propagate max_fsm_queue to all modules started as gen_server

This commit is contained in:
Evgeny Khramtsov 2019-07-04 10:26:59 +03:00
parent d411e68a2e
commit 05461d1686

View File

@ -96,7 +96,8 @@ start_child(Mod, Host, Opts) ->
-spec start_child(module(), binary(), opts(), atom()) -> {ok, pid()} | {error, any()}. -spec start_child(module(), binary(), opts(), atom()) -> {ok, pid()} | {error, any()}.
start_child(Mod, Host, Opts, Proc) -> start_child(Mod, Host, Opts, Proc) ->
Spec = {Proc, {?GEN_SERVER, start_link, Spec = {Proc, {?GEN_SERVER, start_link,
[{local, Proc}, Mod, [Host, Opts], []]}, [{local, Proc}, Mod, [Host, Opts],
ejabberd_config:fsm_limit_opts([])]},
transient, timer:minutes(1), worker, [Mod]}, transient, timer:minutes(1), worker, [Mod]},
supervisor:start_child(ejabberd_gen_mod_sup, Spec). supervisor:start_child(ejabberd_gen_mod_sup, Spec).