[99s-extend] Restart listeners if ranch_sup fails

Xiao Jia me at xiao-jia.com
Fri Jan 17 03:15:24 CET 2014


>From http://ninenines.eu/docs/en/ranch/HEAD/guide/embedded/

    "It is recommended that your architecture makes sure that all
listeners are restarted if ranch_supfails."

Does it imply that we should use rest_for_one instead of one_for_one
in the example code below?

    {ok, {{one_for_one, 10, 10}, [RanchSupSpec, ListenerSpec]}}

=>

    {ok, {{rest_for_one, 10, 10}, [RanchSupSpec, ListenerSpec]}}

-- 
Regards,
Xiao Jia



More information about the Extend mailing list