Make proto_sup strategy less strict

This commit is contained in:
Camden Dixie O'Brien 2025-02-25 22:23:40 +00:00
parent 0238fbbd2a
commit b33aeb8014

View File

@ -11,9 +11,9 @@ start_link(Port, CertDir) ->
supervisor:start_link({local, ?MODULE}, ?MODULE, [Port, CertDir]). supervisor:start_link({local, ?MODULE}, ?MODULE, [Port, CertDir]).
init([Port, CertDir]) -> init([Port, CertDir]) ->
SupFlags = #{stragegy => one_for_one, SupFlags = #{strategy => one_for_one,
intensity => 1, intensity => 5,
period => 5}, period => 10},
ChildSpecs = [#{id => session_sup, ChildSpecs = [#{id => session_sup,
start => {session_sup, start_link, []}, start => {session_sup, start_link, []},
restart => permanent, restart => permanent,