aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_sup.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-07-24 12:58:54 +0200
committerLoïc Hoguin <[email protected]>2012-07-25 10:05:15 +0200
commitb72fe3e67e65c66d979a9651ebc815bdc553601c (patch)
treeb6014dcc9ed930c885851d0c56b200612dc77738 /src/ranch_sup.erl
parented50a5556a788a9780b5a8f85764b509338c1073 (diff)
downloadranch-b72fe3e67e65c66d979a9651ebc815bdc553601c.tar.gz
ranch-b72fe3e67e65c66d979a9651ebc815bdc553601c.tar.bz2
ranch-b72fe3e67e65c66d979a9651ebc815bdc553601c.zip
Introduce the ranch_server registry, make it handle listeners
Diffstat (limited to 'src/ranch_sup.erl')
-rw-r--r--src/ranch_sup.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ranch_sup.erl b/src/ranch_sup.erl
index 5551f12..ff05194 100644
--- a/src/ranch_sup.erl
+++ b/src/ranch_sup.erl
@@ -33,4 +33,8 @@ start_link() ->
%% supervisor.
init([]) ->
- {ok, {{one_for_one, 10, 10}, []}}.
+ Procs = [
+ {ranch_server, {ranch_server, start_link, []},
+ permanent, 5000, worker, [ranch_server]}
+ ],
+ {ok, {{one_for_one, 10, 10}, Procs}}.