4 ms·
What happens when the process is bound to fail on start? (eg. trying to bind a port that's already being used) Never used that model so I'm curious.
by sprt 9y ago
What happens when the process is bound to fail on start? (eg. trying to bind a port that's already being used) Never used that model so I'm curious.
- mercer 9y agoIt depends on how you set things up, but one possible approach is that the supervisor, after a few retries, would also shut down, which would trigger the supervisor above that to restart the whole thing with a different port. This wouldn't make sense, probably, but maybe it illustrates how you can go about these things.
- zzzcpan 9y agoIf it fails on start you try again and again until it succeeds. There is a submission on the front page that dives in into this: https://news.ycombinator.com/item?id=15182626 https://news.ycombinator.com/item?id=15182626