From b186d01367a1a744f6195e071611f97f9cc88f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 6 Aug 2012 14:35:05 +0200 Subject: Make ranch_sup the owner of the ranch_server ets table Should prove itself more robust when things go wrong. --- src/ranch_sup.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ranch_sup.erl') diff --git a/src/ranch_sup.erl b/src/ranch_sup.erl index ff05194..ad1c558 100644 --- a/src/ranch_sup.erl +++ b/src/ranch_sup.erl @@ -33,6 +33,8 @@ start_link() -> %% supervisor. init([]) -> + ranch_server = ets:new(ranch_server, [ + ordered_set, public, named_table, {write_concurrency, true}]), Procs = [ {ranch_server, {ranch_server, start_link, []}, permanent, 5000, worker, [ranch_server]} -- cgit v1.2.3