Compare commits

...

2 Commits

Author SHA1 Message Date
cdo b5c8bf757d Remove unused acceptor field from tcp_server state 2025-02-25 22:24:07 +00:00
cdo b394f7eb7f Make proto_sup strategy less strict 2025-02-25 22:23:40 +00:00
2 changed files with 4 additions and 4 deletions
+3 -3
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,
+1 -1
View File
@@ -8,7 +8,7 @@
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, -export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]). terminate/2, code_change/3]).
-record(state, {socket, acceptor}). -record(state, {socket}).
start_link(Port, CertDir) -> start_link(Port, CertDir) ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [Port, CertDir], []). gen_server:start_link({local, ?MODULE}, ?MODULE, [Port, CertDir], []).