extend/ranch — pull request #42 by fishcakez (2013-03-31 14:59:36+00:00)
Title: Fix listener recover opts

If a listener dies it would lose its max connections and protocol options settings. The settings are stored in an ets table owned by ranch_listener_sup.

If ranch_listener_sup restarts these settings would be lost as the ets table would be gone. To prevent an reverting to a previous setting the ranch_listener_sup's child spec in ranch_sup has been changed to `temporary`! In my opinion this is better than reverting to a previous setting and being inconsistent with the calling application. This means an application using ranch would now need to monitor the listener and restart it using its own restart strategy.

NB: This bug is also present when embedding.