diff options
author | Andrew Majorov <[email protected]> | 2012-11-01 16:50:47 +0400 |
---|---|---|
committer | Andrew Majorov <[email protected]> | 2012-12-21 00:05:12 +0400 |
commit | 8dad1451dd6e41f30741ac7554da238aa63c163a (patch) | |
tree | 0be82b920136d309b0ca4fafb17d490ab048ae24 /test/echo_protocol.erl | |
parent | 7f4261d1d83dde90be93d3615693b44969f6b446 (diff) | |
download | ranch-8dad1451dd6e41f30741ac7554da238aa63c163a.tar.gz ranch-8dad1451dd6e41f30741ac7554da238aa63c163a.tar.bz2 ranch-8dad1451dd6e41f30741ac7554da238aa63c163a.zip |
Make listener supervisor failures less painful
Two general issues were addressed. The first one is the issue with
statically defined pids passed into childspecs. This issue prevents
regular supervisor' children restarts in the case of someone's
failure.
The second one is the not quite appropriate restart strategy.
Changed to rest_for_one which in pair with previous fixes assures
that live connections will not die in the case of partial failure.
Among possible failures are listening socket shutdown or frequent
accept errors.
Diffstat (limited to 'test/echo_protocol.erl')
0 files changed, 0 insertions, 0 deletions