From ae8ff1fc0fcac71f24958962a362800775b43b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 18 Dec 2015 16:05:51 +0100 Subject: Use the default restart intensity in all supervisors This reduces from 10 restarts in 10 seconds to 1 restart in 5 seconds. This is the new default in OTP 18, and it fits the kinds of processes that Ranch deals with: * Supervisors: default makes sense. * Acceptors: they crash on socket error. They'll probably crash again if the socket didn't change. * Connection processes: they are never restarted. --- src/ranch_listener_sup.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ranch_listener_sup.erl') diff --git a/src/ranch_listener_sup.erl b/src/ranch_listener_sup.erl index a8c6676..294cd1d 100644 --- a/src/ranch_listener_sup.erl +++ b/src/ranch_listener_sup.erl @@ -39,4 +39,4 @@ init({Ref, NbAcceptors, Transport, TransOpts, Protocol}) -> [Ref, NbAcceptors, Transport, TransOpts]}, permanent, infinity, supervisor, [ranch_acceptors_sup]} ], - {ok, {{rest_for_one, 10, 10}, ChildSpecs}}. + {ok, {{rest_for_one, 1, 5}, ChildSpecs}}. -- cgit v1.2.3