|
@@ -27,7 +27,7 @@ start_link(NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts) ->
|
|
{ok, SupPid} = supervisor:start_link(?MODULE, []),
|
|
{ok, SupPid} = supervisor:start_link(?MODULE, []),
|
|
{ok, ListenerPid} = supervisor:start_child(SupPid,
|
|
{ok, ListenerPid} = supervisor:start_child(SupPid,
|
|
{cowboy_listener, {cowboy_listener, start_link, []},
|
|
{cowboy_listener, {cowboy_listener, start_link, []},
|
|
- permanent, 5000, worker, dynamic}),
|
|
|
|
|
|
+ permanent, 5000, worker, [cowboy_listener]}),
|
|
{ok, ReqsPid} = supervisor:start_child(SupPid,
|
|
{ok, ReqsPid} = supervisor:start_child(SupPid,
|
|
{cowboy_requests_sup, {cowboy_requests_sup, start_link, []},
|
|
{cowboy_requests_sup, {cowboy_requests_sup, start_link, []},
|
|
permanent, 5000, supervisor, [cowboy_requests_sup]}),
|
|
permanent, 5000, supervisor, [cowboy_requests_sup]}),
|