From 9bae951c555f9c25876968fa98853253b7007a0f Mon Sep 17 00:00:00 2001 From: kballou Date: Fri, 24 Nov 2017 10:16:06 -0700 Subject: Level up the Echo Server This should enable the upgrade process to retain connections - Replace our simple task supervisor with a custom `simple_one_for_one` supervisor - Upgrade the echo server to use a `GenServer` behaviour --- lib/octonetcat/supervisor.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/octonetcat/supervisor.ex') diff --git a/lib/octonetcat/supervisor.ex b/lib/octonetcat/supervisor.ex index 50a5f66..64bc27c 100644 --- a/lib/octonetcat/supervisor.ex +++ b/lib/octonetcat/supervisor.ex @@ -11,7 +11,7 @@ defmodule Octonetcat.Supervisor do def init(_) do children = [ - supervisor(Task.Supervisor, [[name: Octonetcat.TaskSupervisor]]), + supervisor(Octonetcat.ServerSupervisor, []), worker(Task, [Octonetcat.Accepter, :accept, []]) ] -- cgit v1.2.1